From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org campture recursively expands %-escapes Date: Fri, 08 Jan 2016 23:44:59 +0100 Message-ID: <8737u7lmhg.fsf@nicolasgoaziou.fr> References: <874mgb9gqv.fsf@nicolasgoaziou.fr> <87d1uwpm1a.fsf@nicolasgoaziou.fr> <87610o2wkz.fsf@nicolasgoaziou.fr> <87io4kn6cn.fsf@nicolasgoaziou.fr> <87oad2qw4z.fsf@nicolasgoaziou.fr> <87bn92qsmb.fsf@nicolasgoaziou.fr> <87lh837fzx.fsf@nicolasgoaziou.fr> <87h9ipqrez.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHfkO-00056c-Tk for emacs-orgmode@gnu.org; Fri, 08 Jan 2016 17:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHfkO-0005dF-7R for emacs-orgmode@gnu.org; Fri, 08 Jan 2016 17:43:04 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:36555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHfkO-0005d6-19 for emacs-orgmode@gnu.org; Fri, 08 Jan 2016 17:43:04 -0500 In-Reply-To: (Michael Brand's message of "Fri, 8 Jan 2016 21:59:38 +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: Michael Brand Cc: Org Mode Michael Brand writes: > I'm porting test-org-capture.el to test-org-feed.el and found this > issue in org-feed-format-entry: Evaluation of > > (org-feed-format-entry '(:title "success!") "\\\\%h" nil) > > with Emacs 24.5 results in "Lisp error: (args-out-of-range # *temp*> 4 5)". The Lisp error disappears when single stepping with > Edebug but then org-feed-format-entry returns "\\%h" instead of the > expected "\\success!". To my understanding the problem seems to be > that org-capture-escaped-% messes up the match data which leads to an > empty variable with the name "replacement". I wonder why this problem > is not showing up in org-capture-fill-template too. Fixed, too. Thank you. Regards,