From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29266 invoked from network); 13 Feb 2006 10:52:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Feb 2006 10:52:23 -0000 Received: (qmail 18230 invoked from network); 13 Feb 2006 10:52:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Feb 2006 10:52:17 -0000 Received: (qmail 5502 invoked by alias); 13 Feb 2006 10:52:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22253 Received: (qmail 5493 invoked from network); 13 Feb 2006 10:52:14 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Feb 2006 10:52:14 -0000 Received: (qmail 17852 invoked from network); 13 Feb 2006 10:52:14 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 13 Feb 2006 10:52:13 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly10d.srv.mailcontrol.com (MailControl) with ESMTP id k1DApxKO020666 for ; Mon, 13 Feb 2006 10:52:11 GMT Received: from csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 13 Feb 2006 10:52:03 +0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Bug in { completion's comma removal In-reply-to: <20060211040001.GG14115@dot.blorf.net> References: <20060106180019.GB10111@dot.blorf.net> <237967ef0601061207h7802915dm580a12122a971242@mail.gmail.com> <20060211040001.GG14115@dot.blorf.net> Date: Mon, 13 Feb 2006 10:51:53 +0000 From: Peter Stephenson Message-ID: X-OriginalArrivalTime: 13 Feb 2006 10:52:03.0795 (UTC) FILETIME=[8645DA30:01C6308B] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-06-00-02 (www.mailcontrol.com) on 10.68.0.120 Wayne Davison wrote: > On Fri, Jan 06, 2006 at 09:07:19PM +0100, Mikael Magnusson wrote: > > While we're talking about {} [...] there's no way (that i've figured > > out) to escape a comma inside the braces. > > I've looked at this, and I'm thinking that the easiest thing to do is to > sometimes mark a comma with ISPECIAL, just like {, }, space, etc. Since > user-typed commas inside a brace are already transformed into "Comma" > (0x97), this ensures that completing filenames that contain a comma get > a backslash prefixed, and that a user-typed "\," sequence does not lose > the backslash. I'll attach a patch that works, but I'd appreciate some > input if someone would care to take a look at what I've done. It's a bit of a hack, but that's hardly a big change around here... -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php