Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: incorrect setopt completion
- X-seq: zsh-workers 36182
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: incorrect setopt completion
- Date: Sat, 15 Aug 2015 04:14:57 +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=1WQ09vcS/Pp8IPoNK7Ida6RXdckJ2bL4Mg6FYFuSxWA=; b=SCAcra5T7S8XlQnDSFXIxriZWw8AfPFK/A+zQcpRuy7ktcOV5XplaondDQ2YLC7ROG qxEwyNL54O/T1eXNKglz/7USpDtPTxGB+QPRZjXtVy3+scCSTjLN+lL9C+oxM++8taH+ PjxnKRfDaufBmgBW1VgW5sy9fzmmh5NacPlzKldDCtjz1cTe0viF8okHyAo31HRfA85I IehiePI8lrb31uCDKrCkkFJ9fu+5ZVZwrvz/Vnetp0Mj7At2ffN8NuIollRwfr5eHkgz dy15mtdrJdFsBVBdtBlahhItOiqZ3HWKTID4BJxgOK59Qhhs2Yf8uyFbQSPbUR2xkyo3 HBwA==
- In-reply-to: <150814190936.ZM17069@torch.brasslantern.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>
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.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author