From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: {{{macro}}} expansion not working properly for docbook export Date: Wed, 20 May 2009 00:11:16 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6fxw-0007vu-3S for emacs-orgmode@gnu.org; Wed, 20 May 2009 03:11:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6fxq-0007vi-Nb for emacs-orgmode@gnu.org; Wed, 20 May 2009 03:11:50 -0400 Received: from [199.232.76.173] (port=39548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6fxq-0007vf-HK for emacs-orgmode@gnu.org; Wed, 20 May 2009 03:11:46 -0400 Received: from mx20.gnu.org ([199.232.41.8]:9533) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6fxp-0001Q4-RX for emacs-orgmode@gnu.org; Wed, 20 May 2009 03:11:46 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6fxj-0004fg-MH for emacs-orgmode@gnu.org; Wed, 20 May 2009 03:11:39 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M6fxd-0004qr-SU for emacs-orgmode@gnu.org; Wed, 20 May 2009 07:11:33 +0000 Received: from nat-dip6.cfw-a-gci.corp.yahoo.com ([209.131.62.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 May 2009 07:11:33 +0000 Received: from cbaoqiu by nat-dip6.cfw-a-gci.corp.yahoo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 May 2009 07:11:33 +0000 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: emacs-orgmode@gnu.org --=-=-= Hi Dale, Dale Smith writes: > {{{maxro}}} expansion does not happen for docbook export until an html > export is done. After that, macros seems to be expanded properly for > docbook export. Thanks for reporting this bug. For some reason I missed the coverage of macro support in DocBook exporter, and the bug was caused by an "optimization" that I thought I did in the code... Variable org-export-opt-plist should have been set but it was not in DocBook exporter. Attached please find the patch for the fix. Please let me know if it works. Thanks, Baoqiu --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=docbook-macro.diff diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el index eab30d8..11f65e3 100644 --- a/lisp/org-docbook.el +++ b/lisp/org-docbook.el @@ -419,9 +419,10 @@ publishing directory." (+ (funcall outline-level) (if org-odd-levels-only 1 0))) 0)) - (opt-plist (if subtree-p - (org-export-add-subtree-options opt-plist rbeg) - opt-plist)) + (opt-plist (setq org-export-opt-plist + (if subtree-p + (org-export-add-subtree-options opt-plist rbeg) + opt-plist))) ;; The following two are dynamically scoped into other ;; routines below. (org-current-export-dir --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--