From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10414 invoked by alias); 24 Sep 2015 15:18:48 -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: 36612 Received: (qmail 18395 invoked from network); 24 Sep 2015 15:18:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f5-f794b6d000001495-f2-56041453059c Date: Thu, 24 Sep 2015 16:18:11 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: "the backslashes" Re: Dynamic directory name function Message-id: <20150924161811.26bf3df5@pwslap01u.europe.root.pri> In-reply-to: <150924081019.ZM835@torch.brasslantern.com> References: <20150922204251.05f3d291@ntlworld.com> <150922210756.ZM30253@torch.brasslantern.com> <20150923094821.5c5d0b80@pwslap01u.europe.root.pri> <150923231024.ZM32382@torch.brasslantern.com> <20150924093752.581dcee9@pwslap01u.europe.root.pri> <150924081019.ZM835@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKLMWRmVeSWpSXmKPExsVy+t/xa7rBIixhBns2algcbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujENPLrMV3GOvePjoCEsDYzNbFyMnh4SAicTte89ZIWwxiQv3 1gPFuTiEBJYySsxYvI8FwpnBJNH+r48dwtnGKPFmyy1mkBYWAVWJc0u2MYLYbAKGElM3zQaz RQTEJc6uPc8CYgsLOEk0b24Bs3kF7CXeL13FBGJzClhIdH9dxAgxdA2TxO0r58GG8gvoS1z9 +4kJ4iZ7iZlXzjBCNAtK/Jh8D2wQs4CWxOZtTawQtrzE5jVvwXqFBNQlbtzdzT6BUWgWkpZZ SFpmIWlZwMi8ilE0tTS5oDgpPddIrzgxt7g0L10vOT93EyMkcL/uYFx6zOoQowAHoxIP70wd 5jAh1sSy4srcQ4wSHMxKIrwc74FCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeWfueh8iJJCeWJKa nZpakFoEk2Xi4JRqYFx6WE6U6/GXyGdzfn2Y/6Fl5SwF5dfpR+8+P//GI0T3Qe+X0KaCgJj7 5SrrZflbUvoeL/ZSC5K7zbXZptb3xbYEm8v1utn+bw4umuLovKxzoU4u84MDH20235nimP8s Vvne+Ts1/MfPfri1ql4j7om+le3GH2slZMXjZ02qaK9Q6Io/se6t2AQlluKMREMt5qLiRAAT 5+y6WAIAAA== On Thu, 24 Sep 2015 08:10:19 -0700 Bart Schaefer wrote: > On Sep 24, 9:37am, Peter Stephenson wrote: > } > } There's also the backslashes, > } but more careful people than me probably don't mind those. > > Thoughts on allowing modules to define the sort of keyword+builtin > pair that we used for typeset ? Then zstyle could hook itself to > the parenthesized-list-parsing code and look like > > zstyle ZDN_wrapper_name zdn_top ( > g ~/git > ga ~/alternate/git > gs /scratch/$USER/git/:second2 > :default: /:second1 > ) > > Of course that would be opening a potential can of syntactic worms. I've often wanted something like this, but it's really tricky to get right. In particular, I'd be unhappy about it if it's not following an assignment --- parentheses are just too heavily overloaded to make this can of worms more than a pig's breakfast (or do I mean dog's dinner?), which isn't my cup of tea. pws