From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [BUG] [Babel] Do not try to process inline source in macro templates Date: Mon, 2 Sep 2013 18:47:53 +0200 Message-ID: References: <87fvtntc4f.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGXIH-0002L0-QV for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 12:48:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGXIC-0003jt-Gu for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 12:48:01 -0400 Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:49866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGXIC-0003it-8R for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 12:47:56 -0400 Received: by mail-ee0-f41.google.com with SMTP id d17so2491062eek.28 for ; Mon, 02 Sep 2013 09:47:55 -0700 (PDT) In-Reply-To: <87fvtntc4f.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: Eric Schulte Cc: emacs-orgmode , Nicolas Girard Thank you Eric. - Carsten On 2.9.2013, at 18:35, Eric Schulte wrote: > Nicolas Girard writes: >=20 >> When a buffer contains such >>=20 >> #+MACRO: m src_emacs-lisp[:results raw]{(do-something "$1")} >>=20 >> macro template, calling =3Dorg-babel-execute-buffer=3D using =3DC-c = C-v C-b=3D yields >>=20 >> if: No id found: $1 >>=20 >> It seems to me that Babel shouldn't be looking for inline code within >> macro templates. >>=20 >=20 > I've just pushed up a fix for this issue which should now ignore = inline > source blocks on lines starting with "#+" during export. I don't know > if there is a better way than using a regex to detect such = non-exporting > lines but this appears to work. >=20 > Cheers, >=20 > --=20 > Eric Schulte > https://cs.unm.edu/~eschulte > PGP: 0x614CA05D >=20