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 48377
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Why does _main_complete not try the next completer when $_comp_mesg is non-zero?
- Date: Fri, 2 Apr 2021 15:58:05 +0300
- Archived-at: <https://zsh.org/workers/48377>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-04/567BB595-1DF6-4F18-B00A-D8025801DAE4%40gmail.com>
- In-reply-to: <20210401170800.GA11180@tarpaulin.shahaf.local2>
- List-id: <zsh-workers.zsh.org>
- References: <20210401170800.GA11180@tarpaulin.shahaf.local2>
> On 1. Apr 2021, at 20.08, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>>> Considered using an «{ } always { }» block?
>>
>> What for?
>
> For clarity, since it seems that's the pattern you're shooting for.
> Also, it would take care of preserving $?.
>
>> I have no need to ever restore the original _complete().
>
> An always block wouldn't do this.
OK, now I’m really lost. I have no idea what you’re talking about. Could you post some code to illustrate what you’re talking about?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author