Hi Dale,

Dale Smith <dsm...@vtiinstruments.com> 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

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
_______________________________________________
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

Reply via email to