From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [RFC] Org version of the Org manual Date: Fri, 22 Mar 2013 17:46:19 +0100 Message-ID: References: <87r4jeqq0i.fsf@Rainer.invalid> <87620k79fo.fsf@gmail.com> <87ip4j5xb8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ55u-0006Qd-4A for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 12:45:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJ55p-0004aT-GF for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 12:45:30 -0400 Received: from plane.gmane.org ([80.91.229.3]:60218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ55p-0004aI-A7 for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 12:45:25 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UJ568-0007aR-FK for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 17:45:44 +0100 Received: from p4fcf793b.dip.t-dialin.net ([79.207.121.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Mar 2013 17:45:44 +0100 Received: from Stromeko by p4fcf793b.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Mar 2013 17:45:44 +0100 In-Reply-To: <87ip4j5xb8.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am 22.03.2013 15:22, schrieb Nicolas Goaziou: > Actually the code I pasted is wrong, I meant: > > (split-string > (replace-regexp-in-string > "\\(\\\\+\\)?\\(,\\)" > (lambda (str) > (let ((len (length (match-string 1 str)))) > (if (evenp len) (concat (make-string (/ len 2) ?\\) "\000") > (concat (make-string (/ (1- len) 2) ?\\) ",")))) > (org-matcĥ-string-no-properties 3) nil t) > "\000") That is starting to make sense... :-) You might want to use the (function (lambda ...)) form. > With the current implementation (and in your refactoring), it is > impossible to have '("a\,b"). Yes, you'd need a second form of quoting to properly support that. It's also impossible to have leading or trailing whitespace, so I don't know how important it is to support this edge case of "\,". > If consistency is a matter, a slightly different patch can require to > escape every backslash character. Though, I don't think it is necessary. I'm not sure it is worth the trouble. Regards, -- Achim. (on the road :-)