From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Org version of the Org manual Date: Fri, 22 Mar 2013 19:17:58 +0100 Message-ID: <87k3ozwb6x.fsf@gmail.com> References: <87r4jeqq0i.fsf@Rainer.invalid> <87620k79fo.fsf@gmail.com> <87ip4j5xb8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ6XY-0006ny-5C for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 14:18:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJ6XW-0006Hv-JN for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 14:18:08 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:37165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ6XW-0006Hq-CZ for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 14:18:06 -0400 Received: by mail-wi0-f180.google.com with SMTP id c10so75173wiw.13 for ; Fri, 22 Mar 2013 11:18:05 -0700 (PDT) In-Reply-To: (Achim Gratz's message of "Fri, 22 Mar 2013 17:46:19 +0100") 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: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > 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=C4=A5-string-no-properties 3) nil t) >> "\000") > > That is starting to make sense... :-) > You might want to use the (function (lambda ...)) form. Why? (function (lambda ...)) is equivalent to (lambda ...). In fact, `lambda' uses `function' as a subroutine. >> 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,=20 That's why I also suggest to drop the (mapcar 'org-trim ...) wrapper. There's no reason to remove blanks if the user inserted them in the first place. > so I don't know how important it is to support this edge case of "\,". Since that's not costly to achieve, there no real reason not to support it. So, any objection (or further comment) for that change? Regards, --=20 Nicolas Goaziou