Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bindkey bug with zsh-3.1.6-dev-21?



> Ick. The problem is that in autoload_zleread() we do:
> 
>     if (load_module("zsh/zle"))
> 	load_module("zsh/compctl");
> 
> i.e., we attempt to load compctl only if loading zle succeeds. For
> people who have a call to `bindkey' in their .z*, the zle module will
> already be loaded, re-loading fails and compctl is not loaded. Bummer.
> 
> Can anyone think of a solution for this? I can't (apart from trying to 
> load compctl unconditionally, which I don't like).

Couldn't we also check whether ((trashzleptr == noop_function))?  If it is,
zle isn't loaded, and if it isn't, zle must be loaded or something very
weird has happened.  zlereadptr is even declared in both branches of the
#ifdef just above.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



Messages sorted by: Reverse Date, Date, Thread, Author