Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: About menu selection (again)
- X-seq: zsh-workers 17543
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: DervishD <raul@xxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: About menu selection (again)
- Date: Wed, 14 Aug 2002 02:27:02 +0000
- In-reply-to: <3D5954F7.mail1L21A9GN@xxxxxxxxxxxx>
- In-reply-to: <3D595620.mail3I11T8QF@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <3D56CD6E.mailMX1LBVZ3@xxxxxxxxxxxx> <1020812060148.ZM28748@xxxxxxxxxxxxxxxxxxxxxxx> <3D5906BF.mail17S21TJ8M@xxxxxxxxxxxx> <1020813150050.ZM30758@xxxxxxxxxxxxxxxxxxxxxxx> <3D5954F7.mail1L21A9GN@xxxxxxxxxxxx> <3D595620.mail3I11T8QF@xxxxxxxxxxxx>
On Aug 13, 8:50pm, DervishD wrote:
}
} Well, when my login zsh starts, the only modules that are loaded
} are zsh/zle and zsh/main. zsh/compctl is not there.
Is that also the case when you start `zsh -f'?
} Maybe I'm not
} invoking any builtin in my rc's so compctl is autoloaded :??
That can't be, either, because `zsh -f' doesn't read your rc's ...
} Yes, they are statically linked. I'm having an idea... What if I
} configured compctl prior to compilation as being statically linked
} but NOT autoloaded (I mean, with load=no in the .mdd file)?
That might be it, but since you said later that pressing TAB causes it
to autoload, it must not be.
On Aug 13, 8:55pm, DervishD wrote:
}
} As I told you, zsh/compctl is not loaded at first. Well, as soon
} as I press TAB, both zsh/compctl and zsh/complete are loaded, but if
} zsh/complist is loaded, then *only* zsh/complete is loaded too at the
} same time and zsh/compctl is not loaded at all...
Aha. We have a winner.
The default startup code explicitly loads both zsh/zle and zsh/compctl if
zsh/zle has not already been loaded. Anything in your rc files that
causes zsh/zle to be loaded, including bindkey, causes zsh/compctl to be
skipped at startup.
Next, the completion code loads zsh/compctl only if zsh/complete is not
already loaded, but zsh/complist has a dependency on zsh/complete and
zsh/zle, so if you load zsh/complist explicitly it blocks all possible
routes to zsh/compctl except explicit autoloading or a compctl command.
Whew. This should probably be considered a bug, but the only way I can
think of to fix it is to use a different module than zsh/complete as the
test for whether a completion system other than compctl is in use.
--
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