From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Macro expansion in new exporter Date: Sat, 09 Feb 2013 09:04:16 +0100 Message-ID: <87wquhewvz.fsf@gmail.com> References: <87ehgqwgi3.fsf@lapcat.tftorrey.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U45QL-00057D-O8 for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 03:04:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U45QK-0007CV-Bl for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 03:04:37 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:62193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U45QK-0007CQ-5j for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 03:04:36 -0500 Received: by mail-wi0-f178.google.com with SMTP id o1so1618893wic.17 for ; Sat, 09 Feb 2013 00:04:35 -0800 (PST) In-Reply-To: <87ehgqwgi3.fsf@lapcat.tftorrey.com> (T. F. Torrey's message of "Fri, 08 Feb 2013 16:08:36 -0700") 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: "T.F. Torrey" Cc: emacs-orgmode@gnu.org Hello, tftorrey@tftorrey.com (T.F. Torrey) writes: > Right now, though, it's giving me a small problem: in the export to > HTML, macro's are not expanded, so I have {{{title}}}, for instance, in > the HTML output. > > I haven't been following the list as closely as I'd like, so I'm hoping > I missed something relevant in the changeover. > > If anyone has any ideas, I'd appreciate them before I go digging. Macro expansion happens before export back-ends kick-in, as does Babel code evaluation and file inclusion through #+include keywords. So the problem (if there's one) doesn't come from ox-html.el. On that topic, the main difference with the previous exporter is that macros are now required to be in a context that can be parsed. Thus, for example, the following is not a macro: ~{{{title}}}~ > Emacs : GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.6.0) > of 2012-12-24 on menkib, modified by Debian > Package: Org-mode version 7.9.2+ (7.9.2+-GNU-Emacs-24-3 (commit 488eea) @ mixed installation! /usr/share/emacs/24.3.50/lisp/org/ and /home/tftorrey/.emacs.d/elisp/org/lisp/) You have a mixed installation. You should perhaps fix this before trying again. Regards, -- Nicolas Goaziou