From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Non-controversial patch?
Date: Sat, 16 Oct 2004 21:40:07 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.61.0410161605440.8058@toltec.zanshin.com> (raw)
I'd like to change _generic so that any positional parameters are passed
on through to _main_complete. This would be transparent to anyone who is
already using _generic.
Among other things, this allows one to do
zle -C call-completer complete-word _generic
and then e.g.
foo() { zle call-completer _foo }
zle -N foo
which I think is marginally more comprehensible than
zle -C foo complete-word _generic
zstyle ':completion:foo:*' completer _foo
but perhaps that's just me.
The real reason I want it is so that I can prefix certain other function
definitions with
#compdef -k complete-word ^Xx
if [[ -z "$curcontext" ]]; then
_generic $0
return
fi
and thereby cause assorted zstyles to be applied uniformly. Yes, I could
call _main_complete directly there, but the initial $curcontext assigned
by _generic is still convenient.
(I wonder if _bash_completions might rather call _generic as well, to
allow different zstyles for bash v. zsh completions?)
reply other threads:[~2004-10-17 4:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.61.0410161605440.8058@toltec.zanshin.com \
--to=schaefer@brasslantern.com \
--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).