Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-21
03:12 • Ticket [218665ffff] auto_mkindex does not work with slavehook status still C... artifact: e39cb2a3c6 user: dgp
2000-10-26
08:26 • Closed ticket [218665ffff]. artifact: 1cdf1879c6 user: welch
01:03 • New ticket [218665ffff]. artifact: c45c38fd53 user: nobody

auto_mkindex does not work with slavehook

Closed / Fixed218665ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:52
OriginalBugID: 1657 Bug
Version: 8.0.5
SubmitDate: '1999-03-29'
LastModified: '1999-04-22'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: pat
RelatedBugIDs: 1549
OS: Other
Machine: NA
FixedDate: '1999-04-02'
ClosedDate: '1999-04-01'


Name: Jens Ehlers
CustomShell: none

ReproducibleScript:
    package require Itcl
    namespace import itcl::*
    auto_mkindex_parser::slavehook {
      _%@namespace import -force itcl::*
    }    
    auto_mkindex . *.tcl 

ObservedBehavior:
    
    Error stack:
    
    invalid command name "$parser"
        while executing
    "{$parser} eval {
    _%@namespace import -force itcl::*
        }"
        ("eval" body line 1)
        invoked from within
    "eval $cmd"
        (procedure "auto_mkindex_parser::init" line 28)
        invoked from within
    "auto_mkindex_parser::init"
        (procedure "auto_mkindex" line 19)
        invoked from within
    "auto_mkindex . *.tcl "

DesiredBehavior:
    The generation of an tclIndex file which
    includes classes and methods.
    This worked fine with the prowish80 delivered with the 
    evaluation release 1.2b1. Now we registerd the product and got
    TclPro 1.2 with an prowish80 with the above mentioned error.
    The problem is the same on Sun and on NT
    prowish80 from TclPro1.2b1  works fine
    prowish80 from TclPro1.2.0  does not work

Date: Mon, 29 Mar 1999 14:03:24 +0200
From: Jens Ehlers <[email protected]>
To: [email protected]
Subject: Re: [Bug Tcl 8.0.5] auto_mkindex does not work with slavehook
Content-transfer-encoding: 7bit

Hi all,
in the meantime I fixed the bug by comparing
and modifying the lib/tcl8.0/init.tcl of the both versions.

Here are the changes:
diff init.tcl init.tcl_original 
910,911c910,911
< 
<       lappend initCommands "\$parser eval [list $cmd]"
---
> 
>       lappend initCommands [list \$parser eval $cmd]
962c962
<           $parser invokehidden proc $name {args} "_%@eval $alias \$args"
---
>           $parser invokehidden proc $name {args} [list _%@eval $alias \$args]

Regards
Jens

Fixed quoting problems and added test suite to exercise the slaveHook
that is normally only used by Incr Tcl.
welch Closed ticket [218665ffff]. [History diff]2000-10-26 08:26:11
dgp Ticket [218665ffff]: 3 changes [History diff]2001-04-21 03:12:09
Log in (anonymous is fine) to add a comment.