From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: all completions
Date: Thu, 12 Oct 2000 14:30:29 +0200 (MET DST) [thread overview]
Message-ID: <200010121230.OAA29231@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Thu, 12 Oct 2000 12:23:34 +0000
Bart Schaefer wrote:
> On Oct 12, 10:44am, Sven Wischnowsky wrote:
> }
> } Bart Schaefer wrote:
> }
> } > What about _ignored?
> }
> } Ah, right, this does. Hm, but when I think about this alternate-set
> } stuff it comes from: doesn't it may make sense to add all the ignored
> } matches? At least than all corrections.
>
> It may make sense to add all the ignored matches, but not in the same
> single completion where one adds all the not-ignored matches. Is there
> some way to get all the ignored matches added only if there aren't any
> that are not ignored?
That's the normal behaviour of _ignored. Without it one never gets the
ignored matches. With it one either gets the not-ignored matches (x)or,
if there are none, only the ignored ones.
And _all_matches only adds the special all-matches-match at the end,
so it represents only all not-ignored matches or all ignored ones.
> Can one use _all_matches more than once in the
> list of completers, e.g. both before and after _ignored?
Since _all_matches only registers a function that is executed at the
end[*], it can't be called more than once (well, it can, but that will
result in the same behaviour).
[*] In the non-`old-matches' mode. With old-matches it just sets
compstate[old_list]=keep and compstate[insert]=all and returns zero.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-10-12 12:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-12 12:30 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-10-12 8:44 Sven Wischnowsky
2000-10-12 12:23 ` Bart Schaefer
2000-10-11 12:17 Sven Wischnowsky
2000-10-11 12:37 ` Andrej Borsenkow
2000-10-11 13:39 ` Sven Wischnowsky
2000-10-11 15:41 ` 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=200010121230.OAA29231@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).