From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [BUG] [Babel] Do not try to process inline source in macro templates Date: Mon, 02 Sep 2013 10:35:44 -0600 Message-ID: <87fvtntc4f.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGX6D-00036n-Un for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 12:35:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGX68-0007n3-Mi for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 12:35:33 -0400 Received: from mail-pb0-x236.google.com ([2607:f8b0:400e:c01::236]:39597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGX68-0007mo-Fs for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 12:35:28 -0400 Received: by mail-pb0-f54.google.com with SMTP id ro12so4914904pbb.41 for ; Mon, 02 Sep 2013 09:35:27 -0700 (PDT) In-Reply-To: (Nicolas Girard's message of "Fri, 23 Aug 2013 09:55:28 +0200") 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: Nicolas Girard Cc: emacs-orgmode Nicolas Girard writes: > When a buffer contains such > > #+MACRO: m src_emacs-lisp[:results raw]{(do-something "$1")} > > macro template, calling =org-babel-execute-buffer= using =C-c C-v C-b= yields > > if: No id found: $1 > > It seems to me that Babel shouldn't be looking for inline code within > macro templates. > 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. Cheers, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D