From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Sven Wischnowsky <wischnow@berkom.de>, zsh-workers@sunsite.dk
Subject: Re: About menu selection (again)
Date: Sat, 17 Aug 2002 17:26:39 +0000 [thread overview]
Message-ID: <1020817172639.ZM6260@candle.brasslantern.com> (raw)
In-Reply-To: <15708.60068.71382.607117@wischnow.berkom.de>
On Aug 16, 2:05pm, Sven Wischnowsky wrote:
}
} DervishD wrote:
}
} > Since complist needs compctl to work, could it be added as a dependency?
}
} That would be wrong because complist doesn't need compctl. It only
} `needs' some form of completion to be useful and the new completion
} system is only built on top of the more basic `complete' module.
The trouble is that the zsh/complete module is not a form of completion;
it's a collection of tools for building forms of completion. It's useless
unless `zle -C' has been run and that widget calls `compadd'.
So the test in zle_tricky.c:docompletion for module_loaded("zsh/complete")
is woefully inadequate. We need to at least test for `zle -C'.
Could we do something along the lines of shuffling the hookdefs so that
the completion hooks are not defined until `zle -C' runs the first time,
even if the zsh/complete module has been loaded? And then test for the
presence of the hook rather than the presence of the module, and load
compctl if the hook doesn't exist?
--
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
next prev parent reply other threads:[~2002-08-17 17:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-11 20:47 DervishD
2002-08-12 6:01 ` Bart Schaefer
2002-08-13 13:16 ` DervishD
2002-08-13 15:00 ` Bart Schaefer
2002-08-13 18:50 ` DervishD
2002-08-13 18:55 ` More information on why compctl is not loaded DervishD
2002-08-14 2:27 ` About menu selection (again) Bart Schaefer
2002-08-16 12:08 ` DervishD
2002-08-16 12:05 ` Sven Wischnowsky
2002-08-17 17:26 ` Bart Schaefer [this message]
2002-08-19 7:40 ` Sven Wischnowsky
2002-08-20 11:58 ` Sven Wischnowsky
2002-08-20 15:07 ` Bart Schaefer
2002-08-20 15:21 ` Sven Wischnowsky
2002-08-18 16:29 ` DervishD
2002-08-18 23:07 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1020817172639.ZM6260@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=wischnow@berkom.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).