From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: [ANN] Incompatible change in (eval ...) macros Date: Sun, 17 Dec 2017 09:46:27 +0100 Message-ID: <87bmix68t8.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQUag-0003cQ-DK for emacs-orgmode@gnu.org; Sun, 17 Dec 2017 03:46:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQUaf-0008MZ-Nu for emacs-orgmode@gnu.org; Sun, 17 Dec 2017 03:46:34 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40466) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQUaf-0008Jm-HQ for emacs-orgmode@gnu.org; Sun, 17 Dec 2017 03:46:33 -0500 Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 14E46172094 for ; Sun, 17 Dec 2017 09:46:29 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1eQUaZ-0004yF-WE for emacs-orgmode@gnu.org; Sun, 17 Dec 2017 09:46:28 +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" To: Org Mode List Hello, This is a heads-up about a small incompatible change in (eval ...) macros. Here is the related ORG-NEWS entry: Within =(eval ...)= macros, =$1=-like placeholders are always replaced with a string. As a consequence, they must not be enclosed within quotes. As an illustration, consider the following, now valid, examples: #+begin_example ,#+macro: join (eval (concat $1 $2)) ,#+macro: sum (eval (+ (string-to-number $1) (string-to-number $2))) {{{join(a,b)}}} => ab {{{sum(1,2)}}} => 3 #+end_example However, there is no change in non-eval macros: #+begin_example ,#+macro: disp argument: $1 {{{disp(text)}}} => argument: text #+end_example This is necessary to fix an issue when the arguments of the macro contain special characters (e.g., \ and "). Regards, -- Nicolas Goaziou 0x80A93738