summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-10-24 15:55:59 +0200
committerBastien Guerry <bzg@altern.org>2012-10-24 15:55:59 +0200
commitc3390982cb4959f24b7747a70295443e1e36bff8 (patch)
tree63587e732c05de3d56ba45a18625a53007cb8a35
parent1fc41ca61e8f7f08c57e55ad688482d956d3ccf3 (diff)
downloadorg-mode-c3390982cb4959f24b7747a70295443e1e36bff8.tar.gz
org-lparse.el (org-lparse): Fix bug by returning the output of `org-do-lparse'.
* org-lparse.el (org-lparse): Fix bug by returning the output of `org-do-lparse'. Thanks to Jambunathan for reporting this.
-rw-r--r--lisp/org-lparse.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/org-lparse.el b/lisp/org-lparse.el
index 91b7cc9..c5ced3e 100644
--- a/lisp/org-lparse.el
+++ b/lisp/org-lparse.el
@@ -442,11 +442,12 @@ PUB-DIR specifies the publishing directory."
(error "Don't know how to export to backend %s %s" target-backend
(format "via %s" native-backend)))
(run-hooks 'org-export-first-hook)
- (org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir)
- (remove-hook 'org-export-preprocess-hook
- 'org-lparse-strip-experimental-blocks-maybe)
- (remove-hook 'org-export-preprocess-after-blockquote-hook
- 'org-lparse-preprocess-after-blockquote)))
+ (prog1
+ (org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir)
+ (remove-hook 'org-export-preprocess-hook
+ 'org-lparse-strip-experimental-blocks-maybe)
+ (remove-hook 'org-export-preprocess-after-blockquote-hook
+ 'org-lparse-preprocess-after-blockquote))))
(defcustom org-lparse-use-flashy-warning nil
"Control flashing of messages logged with `org-lparse-warn'.