diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-03-10 15:31:47 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-03-10 15:31:47 (GMT) |
commit | 14006b97c076ce9c22cc84f390ddf15717924224 (patch) | |
tree | 3d762efe761d77443255b67980b016728e90a1dc /library/auto.tcl | |
parent | c72726d8cefd31a97c13a617c0f476eb2cf76f48 (diff) | |
download | tcl-14006b97c076ce9c22cc84f390ddf15717924224.zip tcl-14006b97c076ce9c22cc84f390ddf15717924224.tar.gz tcl-14006b97c076ce9c22cc84f390ddf15717924224.tar.bz2 |
Fix most of the failing tests (some of which were due to breakage done to the
parser used in auto_mkIndex; never a good idea to delete the ::tcl NS!)
Diffstat (limited to 'library/auto.tcl')
-rw-r--r-- | library/auto.tcl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/library/auto.tcl b/library/auto.tcl index c84ab58..4bd860d 100644 --- a/library/auto.tcl +++ b/library/auto.tcl @@ -304,7 +304,14 @@ namespace eval auto_mkindex_parser { $parser hide namespace $parser hide eval $parser hide puts - $parser invokehidden namespace delete :: + foreach ns [$parser invokehidden namespace children ::] { + # MUST NOT DELETE "::tcl" OR BAD THINGS HAPPEN! + if {$ns eq "::tcl"} continue + $parser invokehidden namespace delete $ns + } + foreach cmd [$parser invokehidden info commands ::*] { + $parser invokehidden rename $cmd {} + } $parser invokehidden proc unknown {args} {} # We'll need access to the "namespace" command within the |