From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11082 invoked by alias); 27 Dec 2014 00:31:20 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34058 Received: (qmail 26916 invoked from network); 27 Dec 2014 00:31:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=D9vw8UVm c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=nxxe-3AviMpAu5CkLVoA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141226163132.ZM17636@torch.brasslantern.com> Date: Fri, 26 Dec 2014 16:31:32 -0800 In-reply-to: <87tx0ijcp0.fsf@gmail.com> Comments: In reply to Christian Neukirchen "Re: In Vi mode, show whether "insert" or "command" state is active" (Dec 26, 10:58pm) References: <141221175723.ZM5756@torch.brasslantern.com> <8569631419273880@web5h.yandex.ru> <1441071419539683@web21o.yandex.ru> <141225151837.ZM15719@torch.brasslantern.com> <27275.1419593532@thecus.kiddle.eu> <141226112101.ZM17094@torch.brasslantern.com> <87tx0ijcp0.fsf@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: In Vi mode, show whether "insert" or "command" state is active MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 26, 10:58pm, Christian Neukirchen wrote: } } Perhaps %(z.viins.I.)%(z.main.N.)? } } i.e. z.MODE.PRINT_IF_MODE.PRINT_ELSE. That might work (except drop the trailing "."), but it's inconsistent as compared to the other ternary constructions. That is, parsing can't tell without infinite lookahead whether you have %(z.MODE.true.false) or just %(z.true.false). Of course we could just disallow the latter in the case of the 'z' token, but that's still a little icky. If we did this, it should probably be a pattern match or a prefix match so one could do %(z.vi*.notemacs.emacs) or %(z.menu*.this.that). -- Barton E. Schaefer