Artifacts Associated With Ticket 2102614
Ticket change [9082ee123b] (rid 120462) by nobody on 2008-09-09 20:35:02:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Linux debsam 2.6.18-6-k7 #1 SMP Mon Aug 18 09:20:26 UTC 2008 i686 GNU/Linux Tcl: 8.6a3 auto_mkindex don't detect ensembles. a patch perhaps: diff auto.tcl auto.tcl.BAK 586,602d585 < ensemble { < variable parser < variable index < variable scriptFile < < set subcommand [lindex $args 0] < if {$subcommand eq "create"} { < set script [list _%@namespace ensemble {*}$args] < if {[catch {$parser eval $script} command] == 0} { < append index [list set auto_index($command)] \ < [format { [list source [file join $dir %s]]} \ < [file split $scriptFile]] "\n" < } < } else { < $parser eval [list _%@namespace ensemble {*}$args] < } < } - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "40. Dynamic Loading"
- title initialized to: "auto_mkindex don't detect ensembles"
- type initialized to: "Bug"
Ticket change [d710760a0e] (rid 123913) by dgp on 2008-09-10 22:15:52:
- assignee changed to: "dgp"
- subsystem changed to: "38. Init - Library - Autoload"
Ticket change [50aa7eb989] (rid 126011) by dgp on 2008-09-30 01:30:20:
- priority changed to: "8"
Ticket change [32f03834ba] (rid 93701) by bgriffin on 2013-01-04 04:29:15:
- icomment:
The proposed patch does not work for me. This patch does work for me: $ p4 diff -dc auto.tcl ==== //dvt/mti/prod/src/tcltk/8.5.8/tcl/tcl/library/auto.tcl#1 - /home/bgriffin/dev/devm2_backup/prod/src/tcltk/8.5.8/tcl/tcl/library/auto.tcl ==== *************** *** 604,609 **** --- 604,618 ---- } 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 a command entry in the tclIndex + $parser eval [list proc $name {} {}] + } + } } } - login: "bgriffin"
- mimetype: "text/plain"
- username: "bgriffin"
- icomment:
Ticket change [497d7be091] (rid 100061) by dgp on 2013-03-19 20:46:38:
- icomment:
Anything we can put in the test suite for this one?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [fb7da38ed2] (rid 92072) by bgriffin on 2013-03-20 01:23:28:
- icomment:
How's this: $ .x/tcl/tcl/tests/autoMkindex.test < ==== //dvt/mti/prod/src/tcltk/8.5.x/tcl/tcl/tests/autoMkindex.test#1 - /home/bgriffin/dev/devm2_backup/prod/src/tcltk/8.5.x/tcl/tcl/tests/autoMkindex.test ==== *************** *** 251,256 **** --- 251,289 ---- list [lvalue $::result *mycmd4*] [lvalue $::result *mycmd5*] [lvalue $::result *mycmd6*] } "{::buried::mycmd4 $element} {::buried::mycmd5 $element} {mycmd6 $element}" + makeFile { + + namespace eval wok { + namespace ensemble create -subcommands {commands vars} + + proc commands {{pattern *}} { + puts [join [lsort -dictionary [info commands $pattern]] \n] + } + + proc vars {{pattern *}} { + puts [join [lsort -dictionary [info vars $pattern]] \n] + } + + } + + } ensemblecommands.tcl + + test autoMkindex-3.3 {ensemble commands in tclIndex} { + file delete tclIndex + auto_mkindex . ensemblecommands.tcl + set f [open tclIndex r] + set dat [list] + foreach r [split [string trim [read $f]] "\n"] { + if {[string match {set auto_index*} $r]} { + lappend dat $r + } + } + set result [lsort $dat] + close $f + set result + } {{set auto_index(::wok::commands) [list source [file join $dir ensemblecommands.tcl]]} {set auto_index(::wok::vars) [list source [file join $dir ensemblecommands.tcl]]} {set auto_index(wok) [list source [file join $dir ensemblecommands.tcl]]}} + + removeFile ensemblecommands.tcl makeDirectory pkg makeFile { - login: "bgriffin"
- mimetype: "text/plain"
- username: "bgriffin"
- icomment:
Ticket change [ae49c22755] (rid 101616) by dgp on 2013-03-21 21:29:59:
- closedate changed to: "2013-03-21T14:29:59"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 patches accepted.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"