diff options
author | dgp <dgp@users.sourceforge.net> | 2013-03-21 14:28:59 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-03-21 14:28:59 (GMT) |
commit | fff161d582d0c83b809f3294e4161c443b6b98ca (patch) | |
tree | 553365144a6d50b02e653b4279f40544aa7a40d0 /library | |
parent | f47c327136e7b60255b0f986fc0061b5fc554ea7 (diff) | |
download | tcl-fff161d582d0c83b809f3294e4161c443b6b98ca.zip tcl-fff161d582d0c83b809f3294e4161c443b6b98ca.tar.gz tcl-fff161d582d0c83b809f3294e4161c443b6b98ca.tar.bz2 |
2102614 Add ensemble indexing support to [auto_mkindex]. Thanks Brian Griffin.
Diffstat (limited to 'library')
-rw-r--r-- | library/auto.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/library/auto.tcl b/library/auto.tcl index b0fb61d..f7cf5f0 100644 --- a/library/auto.tcl +++ b/library/auto.tcl @@ -603,6 +603,15 @@ auto_mkindex_parser::command namespace {op args} { } catch {$parser eval "_%@namespace import $args"} } + ensemble { + variable parser + variable contextStack + if {[lindex $args 0] eq "create"} { + set name ::[join [lreverse $contextStack] ::] + # create artifical proc to force an entry in the tclIndex + $parser eval [list ::proc $name {} {}] + } + } } } |