summaryrefslogtreecommitdiffstats
path: root/library/auto.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-03-10 15:31:47 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-03-10 15:31:47 (GMT)
commit14006b97c076ce9c22cc84f390ddf15717924224 (patch)
tree3d762efe761d77443255b67980b016728e90a1dc /library/auto.tcl
parentc72726d8cefd31a97c13a617c0f476eb2cf76f48 (diff)
downloadtcl-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.tcl9
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