Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why does _main_complete not try the next completer when $_comp_mesg is non-zero?
- X-seq: zsh-workers 48301
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Cc: Marlon Richert <marlon.richert@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Why does _main_complete not try the next completer when $_comp_mesg is non-zero?
- Date: Sun, 28 Mar 2021 18:22:13 -0700
- Archived-at: <https://zsh.org/workers/48301>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/CAH%2Bw%3D7aY7%2B%3DDFH5XSDvk9hXRMaDU7cXLuCUjUav92EXMcdjZ2w%40mail.gmail.com>
- In-reply-to: <74277-1616967738.353098@Tsys.Nn18.rMz7>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDt+5xiu62fLb2Gp9gQOh9Q_o8+-He64fooMMxPceon4vA@mail.gmail.com> <74277-1616967738.353098@Tsys.Nn18.rMz7>
On Sun, Mar 28, 2021 at 2:42 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> If you want to experiment with it, guarding the first _comp_mesg
> assignment in _message with [[ -n "$3" ]] && allows the format style to
> be set to the empty string to disable the setting.
I don't follow how the format style gets involved here?
Adding on to my previous partial dissection of _guard, it appears that
_main_complete does some messing about with compstate[insert] when
_comp_mesg is set which in a way which is contradictory to what
_message does with it: _main_complete sets it unconditionally to the
empty string, but _message only does so if the existing value contains
"unambiguous".
What am I missing?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author