Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] verbose style on by default (was Re: [PATCH] fix core dump by reverse-menu-complete)
- X-seq: zsh-workers 54232
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] verbose style on by default (was Re: [PATCH] fix core dump by reverse-menu-complete)
- Date: Sat, 21 Mar 2026 19:06:31 +0100
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vpcmXouClhzxvMiWbB1rB3ylyLmzVlZagZH1eRWm7lw=; fh=U0plK0J8oBJltcyD3KCzc7MTBA+MjvHzYPuuxmTFpdE=; b=GVozrt1yGLeWNtPJ801B9PN8eHjytYdFmuR5Ezb4DjlJJb1vmggmfWO/suCXHUvk7F oetwmbGKH1iCsPLSilR1YJKL3WBlN2rGCwC8N0k5oHRgqGYPyw+CEm5RrZV9GDytkooI UKdtj0jL5T7sEx+aNiMd+EunxZFiZrQNAUW6Rr6Iwn7s5BTF5gePbLkAJAobiiGBaFbz MalYsybdqIcbaVI96nFlShDqcXTa1LPBL1+428/AA5bCnZXFZQkILCjpBbfAX2Dhb6ky JAxLGv9N9xed/WQwmQmubM0lr6keezEf6WmbGaycPN4YCPULxLXQbyEAZoqciJxGAk1K BJRw==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1774116405; cv=none; d=google.com; s=arc-20240605; b=YBJ+Xpy3L5shgEXvzLqT9kZr4J3sKsQvnyietVgPDsoWSUveE2TQE86YWNS4Oz7zeX UBjbfs3eawrBn0d7J5QmpIjLzveGeeK9ns2impnDHrkQKMzIHHchOjuUVGkWkfofLcu4 9oQkPjmiqZQs0pjL8q9ykzR3ANhaxjux/AwSLSbuzbal+MLomjhjBHGUDhA9SU4sF13s 156fpJ+bWxF+w4SUPDMXY6FfGMmVih7YysYUAt2OrpZ24zwWqMnzr40IBfcy7t0xz1Ka OAyhhruwZlxjd7jx5aY6qWLT/D80Mb3l2lMKpJShVZuPk+i0H5T3JtuF7nGIM5VqVfd6 jbiA==
- Archived-at: <https://zsh.org/workers/54232>
- In-reply-to: <42A8E472-9CFA-431F-9973-84F74626DE72@kba.biglobe.ne.jp>
- List-id: <zsh-workers.zsh.org>
- References: <0FAD1240-E127-44EC-8B53-BF34EDE619C2@kba.biglobe.ne.jp> <74611D2F-5054-44EE-B1BA-D57FC1AF6E08@kba.biglobe.ne.jp> <CAHYJk3ThE_3nRBTtj44TMUtT87QnLQ3LEOMrHXQ8mmYjur7bpQ@mail.gmail.com> <CAH+w=7ZrSQBydtxZ6MyjWT-7_2NGasTwy4x6Jt+qB=8y_BSYPg@mail.gmail.com> <42A8E472-9CFA-431F-9973-84F74626DE72@kba.biglobe.ne.jp>
On Fri, Mar 13, 2026 at 7:46 AM Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
>
> > 2026/03/12 5:06、Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>のメール:
> >
> > On Wed, Mar 11, 2026 at 10:15 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> >
> >> If we want to have verbose consistently enabled, maybe it's better to
> >> change _parameters back to extra-verbose? (despite the rationale given
> >> in 51761).
> >
> > Is this even sufficient? Verbose has become true for a larger number
> > of cases than just _parameters.
>
> Changed files are:
> _find, _git, _iftop, _tcpdump “small change” (I hope)
> _parameters "big change”
> _globquals “medium? change” e.g, echo *(<TAB>
>
> If big/medium changes need be avoided, we can just change zshcompsys(1)
> man page (no default for verbose style) so that each completer can freely
> determine what is offered by verbose=on.
Looking back a bit at the git history, and the commit message that
added the "as it is by default" phrase:
"unposted: rewritten compsys.yo down to end of _describe function" Mon
Apr 14 20:10:00 2003
I think it's likely that it was only meant to say that it is enabled
for _describe by default, ie, showing the description strings that
many (almost all?) completers pass to _describe or _arguments etc.
There were a couple of explicit users of verbose back then too, but
(if my grep-fu holds), none that used zstyle -t.
I think we should probably revert this change and update the
documentation instead, though I'm not sure exactly what to say.
As a side thought, I think showing the descriptions for what options
actually do is a little different from showing the contents of every
parameter being offered, right? (I didn't check what effect the other
completers have when verbose is on/off). _arguments, _values and
_describe mention that the verbose style is used for descriptions, but
the _parameters entry does not, maybe we could just say something like
"enabled by default except where otherwise noted" or something (and
note it is off in _parameters)? It's not like users have any other
easy way to figure out which completer even uses the verbose style at
all anyway.
While searching around for mentions of the verbose style I also came
across this example, which is pretty useless in the present state:
For example, many completion functions can generate matches in
a simple and a verbose form and use the verbose style to decide
which form should be used. To make all such functions use the verbose
form, put
zstyle ':completion:*' verbose yes
Messages sorted by:
Reverse Date,
Date,
Thread,
Author