Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: segfault when overriding complete-word then trying to use tab completion
- X-seq: zsh-users 4738
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: segfault when overriding complete-word then trying to use tab completion
- Date: Wed, 6 Mar 2002 17:14:27 +0000
- In-reply-to: <15493.54613.934394.25215@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020301001623.GA3551@xxxxxxxxxxxxxxxxxxxxx> <1020301092621.ZM18214@xxxxxxxxxxxxxxxxxxxxxxx> <20020301123241.GA9242@xxxxxxxxxxxxxxxxxxxxx> <1020301163650.ZM18718@xxxxxxxxxxxxxxxxxxxxxxx> <20020301172505.GA11135@xxxxxxxxxxxxxxxxxxxxx> <15493.54613.934394.25215@xxxxxxxxxxxxxxxxxx>
On Mar 6, 9:37am, Sven Wischnowsky wrote:
} Subject: Re: segfault when overriding complete-word then trying to use tab
}
} I still can't reproduce it.
I can, but only in 4.0.1, not in 4.0.4 (so far) nor 4.1.x.
The problem is that .complete-word is a completion widget, but it's being
called from a function installed as a normal widget with `zle -N'. This
confuses the completion code somehow -- I haven't got a sensible stack
trace -- but it appears in 4.1.x as though calling `zle .complete-word'
from a normal widget will bypass the new completion system and always
invoke compctl.
In 4.0.1, on the other hand, it appears to depend on the order in which
one runs `compinit' and `zle -N'. Sometimes it invokes compctl and all
works well, other times it tries to invoke new completion and blows up.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author