From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: match again
Date: Mon, 31 Jan 2000 10:06:16 +0100 (MET) [thread overview]
Message-ID: <200001310906.KAA27702@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Sun, 30 Jan 2000 01:27:44 +0000
Bart Schaefer wrote:
> On Jan 28, 5:47pm, Alexandre Duret-Lutz wrote:
> } Subject: Re: match again
> }
> } -compstyle '*:options' prefix-hidden yes"
> } +zstyle '*:options' prefix-hidden yes"
>
> (And several similar examples in comments.)
>
> These are not equivalent. Is it really correct to change it this way?
> The actual equivalent of the "compstyle" statement would be
>
> zstyle ':completion*:options' prefix-hidden yes
Right.
> While I'm on the topic, should there be a ':' before the '*' in that
> example? One of the defaults installed by compinit itself comes out
> like
> zstyle ':completion*:default' list-colors ...
>
> whereas all the others resemble one of
>
> zstyle :completion:correct: prompt 'correct to:'
> or
> zstyle ':completion:*' verbose yes
>
> which makes me wonder if it should be
>
> zstyle ':completion:*:default' list-colors ...
>
> Clue me on the subtlety, please.
The problem is that the default tag is tested in _main_complete which
doesn't add a context name, so it is tested in the simple case as
`:completion:default', but when called from, e.g. _correct_word, as
`:completion:correct-word:default'. A nicer pattern would be
`:completion(|:*):default'.
This is the one place I don't like about the context names. One
solution would be to always stuff `:completion:' in front so that
there are two colons before the completer name, but then we would have
those double colons not only before the command name (although this
may be not that big a problem).
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-01-31 9:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-31 9:06 Sven Wischnowsky [this message]
2000-01-31 11:01 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
2000-02-02 9:21 Sven Wischnowsky
2000-01-31 13:01 Sven Wischnowsky
2000-02-01 18:45 ` Peter Stephenson
2000-01-31 9:13 Sven Wischnowsky
2000-01-28 10:05 Sven Wischnowsky
2000-01-28 16:47 ` Alexandre Duret-Lutz
2000-01-30 1:27 ` Bart Schaefer
2000-02-01 10:48 ` Alexandre Duret-Lutz
2000-01-27 16:31 Andrej Borsenkow
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=200001310906.KAA27702@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).