Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in completion with curly braces?
- X-seq: zsh-workers 47597
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Bug in completion with curly braces?
- Date: Mon, 23 Nov 2020 03:03:59 +0000
- Archived-at: <https://zsh.org/workers/47597>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/20201123030359.GA9114%40tarpaulin.shahaf.local2>
- Authentication-results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none
- Cc: Felipe Contreras <felipe.contreras@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=fm1; bh=H+H 63F+FH5VTciO9ithN2Tvy+UP6l3+9P+KFG+MJtJg=; b=eGyI7LB+fX0BlpF9Nzl s/4IaMNC48LyTBO7lB6cQnEaDEY0AbrWeRXfNyRTdcEJeVjGjB8Nhh4Xq4NN3NWi ZVriorobW6YShDBk0LnxnE6UbIR+hBh2CGsII+ziJJVGMmzktPW2db1tUE45BdiF Xmem5QcAzrGfXqfpbNChor6To/wu0HFnE3fkDt980Z3kQ0uNQ8thf8N7azpBaBFc e4j5bWHLII3L1qgLPOUmJ1ETirhbHZjxtLTjPi8X/gkMiCrM4pfX2/8ztZvYXsHE IWBdjr/WcG0wLA8bKTfwclpvOcTgc2sEd/MoqPbhvePjVosAfZFiO3lJjxlOWwff mbw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=H+H63F +FH5VTciO9ithN2Tvy+UP6l3+9P+KFG+MJtJg=; b=IkNvZwm4yUzn/3teXI4G9f /zq53AtzsyNsKYadVh4LqOW1p+lFTgW5al79Y3if/XWMgl+plyx+Sa8ZvNW8mfQj oRQPe/1ANti+nVetNNU/ADNvh1LoZTFMt+gtBBgH6bndMKzR72LFvB1fym8iq0pc 0dRVOWyY6zrl8oQo0pjP0JRqw4P7Ul6GMlcuZul8+2OxYK9altCV1AHp80I8XXXB 5K/FhTBSGkEgpsmmnpQKBHOPnxoqiHbAnsguEDe95W01Rwl9qQC4dgv5kJBXb348 mYO+OgFMOr5AOOaKy5/ssrqdgDcOnGKHRR0wrYxizxllgM83oyXim+Bpm7QzlnYQ ==
- In-reply-to: <CAH+w=7af7n8NH5b-8Vi2MUWAzbC7-=RQDLX1kCh1R58oMgTLUw@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAMP44s1suGkR83v82+C8xUUG3J8fwyuwPamujvRUPLcNyQdeJw@mail.gmail.com> <69b1ff42-3e60-4b40-8514-9bb0690eb250@www.fastmail.com> <CAMP44s1B8sv5Xe-Mvm8peiJ7H4e2oMgTPd8Si4QxcLD5PyaPnQ@mail.gmail.com> <CAH+w=7ZcJ67eq1cKuSDtb_XxOmcyuk2Esw1ebVSgGhXSAx1V9g@mail.gmail.com> <CAMP44s3MSx6_Zkz-vwy4ayPr-9Zdg1M6xfcmALzVyqb01w2zBA@mail.gmail.com> <CAH+w=7a0ArrzE-ct510rS=L7b2EryyuAYSM+vtMg02a-yFd3KQ@mail.gmail.com> <CAMP44s3yz60cAo5xwn_oJjZvvhVY5H9go+KXZ9WT5J_37pe2Dg@mail.gmail.com> <CAH+w=7af7n8NH5b-8Vi2MUWAzbC7-=RQDLX1kCh1R58oMgTLUw@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
Bart Schaefer wrote on Sun, Nov 22, 2020 at 12:35:52 -0800:
> 1) _comp_options includes "NO_ignorebraces" so isset(IGNOREBRACES) is
> never true in zle_tricky.c:get_comp_string
I'm guessing that option is set so autoloaded completion functions have
predictable parsing, but that means completion code can't tell the value
of the option in the interactive environment.
In z-sy-h we solved this by declaring an assoc parameter and setting it
to the value of $options (or emulating that if zsh/parameter is
unavailable for some reason).
Sounds like a problem that would be useful to solve generically.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author