Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: incorrect setopt completion
- X-seq: zsh-workers 36191
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: incorrect setopt completion
- Date: Mon, 17 Aug 2015 00:55:05 +0200
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Z/DajeoIGR4Vz2ZlJgXUxArk36W5WDUGenZ9URNGpIQ=; b=pvEVvAhAKzjfJWVfcqK31aC35GcDo4/oqOi1IIXcuvJ4cPfiEz1FKk7sPaHEA2Cpyv WyHIVxg+30SAdwLgXbOxdIXWIklzAtp2UMviHnDk7Wc19U/orLNwhesXgqSIMZvzTeTE pjLn9mk9UH/cKaSZNUM3zrSPCY6NM20GksESOZ80Yj/Gjv4B4goR8bNVztEZrNzHEqpZ UnKWx9qoRh5+jQrFbTuny6Yy45RRv7jMwFwpEAtp5hrXVgiz6WawloR/xdqgp/xsc8No sWSqjy02hFE2Fsr8mAUgpQE9hW0H091sgf3kKbO2n4tVcMniQr4Z8gz32dbYCayM+lHW JfYg==
- In-reply-to: <CAHYJk3QtvBiEVTzu0+vDcp_VYMTwVEAwRwpgPviPShHLGT=f+w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150815000543.GA2043@zira.vinc17.org> <150814190936.ZM17069@torch.brasslantern.com> <CAHYJk3QtvBiEVTzu0+vDcp_VYMTwVEAwRwpgPviPShHLGT=f+w@mail.gmail.com>
On Sat, Aug 15, 2015 at 4:14 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On Sat, Aug 15, 2015 at 4:09 AM, Bart Schaefer
> <schaefer@xxxxxxxxxxxxxxxx> wrote:
>> On Aug 15, 2:05am, Vincent Lefevre wrote:
>> }
>> } zira:~> setopt | grep print
>> } printexitvalue
>> }
>> } "setopt nopri[TAB]" and "unsetopt pri[TAB]" don't give any completion.
>> } However "setopt pri[TAB]" has printexitvalue among its completions.
>> } This should be the opposite!
>>
>> Hm.
>>
>> _main_complete is saving the state of the options as early as it can,
>> but XTRACE, PRINTEXITVALUE, LOCALOPTIONS, and LOCALLOOPS are all subject
>> to being saved/restored during the execution of shell functions, which
>> of course means the entirety of compsys.
>>
>> There's no way to fix this from shell script code. The state of the
>> options will have to be stashed somewhere at the C code level before
>> completion functions are entered, if we want this to work.
>
> I guess I should amend my patch to include all four of these.
Actually I just tried this, and all of the other three complete
correctly in an interactive shell for me, so I'll leave it as just
printexitvalue.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author