From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Add the capture feature "%(sexp)" to org-feed Date: Sun, 12 Aug 2012 11:37:07 +0200 Message-ID: References: <7822.1339898820@alphaville> <87y5lqe21l.fsf@gnu.org> <87liho86cp.fsf@gnu.org> <87a9y3m8ko.fsf@gnu.org> <87obmhv04u.fsf@gnu.org> <87zk61t7iv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0Ubd-0006UC-D2 for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 05:37:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0Ubc-0000ec-HN for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 05:37:09 -0400 In-Reply-To: <87zk61t7iv.fsf@gnu.org> 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: Bastien Cc: Org Mode Hi Bastien On Sat, Aug 11, 2012 at 11:59 PM, Bastien wrote: > Unless I miss something obvious, the current version returns exactly > the same thing than the one you propose -- can you double-check or let > me know what is wrong with the current solution? Your solution is wrong when there is a =93%=94 not immediately followed by = =93(=94: On Sat, Aug 11, 2012 at 8:11 PM, Michael Brand wrote: > On Sat, Aug 11, 2012 at 6:55 PM, Bastien wrote: >> Michael Brand writes: >>> [...] >>> Also a small change against your latest patch to not stop at =93%=94 >>> without following =93(=94 and possibly miss a =93%(=94 before. A realistic example, with point somewhere between =93%=94 and the last =93)= =94: =93- %(capitalize "5 % less (see item \"3)\" below)\n")\n=94 This can happen with a feed template containing "- %(capitalize \"%description\")\n" and %description expanding to =935 % less (see item "3)" below)\n=94 All problems of the example are solved: - escaping of the quotes that surround the =933)=94 in string - seemingly unbalanced parenthesis in string coming from =933)=94 - newline within %(...) - =93%=94 not immediately followed by =93(=94 Michael