From: Baoqiu Cui <cbaoqiu@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Re: {{{macro}}} expansion not working properly for docbook export
Date: Wed, 20 May 2009 00:11:16 -0700 [thread overview]
Message-ID: <byceiuk5jvv.fsf@muchbodyking-lm.corp.yahoo.com> (raw)
In-Reply-To: kpmy99t9xv.fsf@flexo.cle.vtiinstruments.lcl
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
Hi Dale,
Dale Smith <dsmith@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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: docbook-macro.diff --]
[-- Type: text/x-patch, Size: 610 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2009-05-20 7:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-19 14:59 {{{macro}}} expansion not working properly for docbook export Dale Smith
2009-05-20 7:11 ` Baoqiu Cui [this message]
2009-05-20 14:11 ` Dale Smith
2009-05-20 17:10 ` Baoqiu Cui
2009-05-20 18:23 ` Dale Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=byceiuk5jvv.fsf@muchbodyking-lm.corp.yahoo.com \
--to=cbaoqiu@yahoo.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.