From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Macro expansion in included files Date: Fri, 8 Apr 2011 12:36:53 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=45957 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q893m-0000BC-EV for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 06:37:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q893k-00027k-Di for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 06:37:01 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:52575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q893k-00027f-9I for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 06:37:00 -0400 Received: by ewy9 with SMTP id 9so1078739ewy.0 for ; Fri, 08 Apr 2011 03:36:59 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Benny Simonsen Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Mar 14, 2011, at 11:01 PM, Benny Simonsen wrote: > Hi >=20 > Some time ago I was posting about a problem with macros in included > files - they will not expand. >=20 > Example with two files top.org and sub.org: macro in the included file > sub.org isn't expanded during export. > See the content of the example files below. >=20 > The patch fixes this so that the macro is expanded in both top.org and = sub.org. >=20 > Setup: > org-mode: git master (head) > export top.org with org-export-as-html >=20 > I hope that the patch format is ok ("git diff" output) attached. >=20 > Best regards > Benny Simonsen >=20 > ### top.org = ############################################################ > #+TITLE: Debug org file > #+MACRO: testmacro Expanded >=20 > {{{testmacro}}} >=20 > #+INCLUDE: "sub.org" > = ######################################################################## >=20 > ### sub.org = ############################################################ > #+TITLE: Included debug org file >=20 > {{{testmacro}}} > = ######################################################################## > - Carsten