Skip to content
Tcl Source Code History Of Ticket 2102614
Login

History Of Ticket 2102614

Artifacts Associated With Ticket 2102614

  1. Ticket change [9082ee123b] (rid 120462) by nobody on 2008-09-09 20:35:02:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. 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]
      <             }
      <         }
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "40. Dynamic Loading"
    11. title initialized to: "auto_mkindex don't detect ensembles"
    12. type initialized to: "Bug"
  2. Ticket change [d710760a0e] (rid 123913) by dgp on 2008-09-10 22:15:52:

    1. assignee changed to: "dgp"
    2. subsystem changed to: "38. Init - Library - Autoload"
  3. Ticket change [50aa7eb989] (rid 126011) by dgp on 2008-09-30 01:30:20:

    1. priority changed to: "8"
  4. Ticket change [32f03834ba] (rid 93701) by bgriffin on 2013-01-04 04:29:15:

    1. 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 {} {}]
      +           }
      +         }
            }
        }
      
      
      
    2. login: "bgriffin"
    3. mimetype: "text/plain"
    4. username: "bgriffin"
  5. Ticket change [497d7be091] (rid 100061) by dgp on 2013-03-19 20:46:38:

    1. icomment:
      Anything we can put in the test suite for this one?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [fb7da38ed2] (rid 92072) by bgriffin on 2013-03-20 01:23:28:

    1. 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 {
      
      
      
    2. login: "bgriffin"
    3. mimetype: "text/plain"
    4. username: "bgriffin"
  7. Ticket change [ae49c22755] (rid 101616) by dgp on 2013-03-21 21:29:59:

    1. closedate changed to: "2013-03-21T14:29:59"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      patches accepted.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"