aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/org/ChangeLog5
-rw-r--r--lisp/org/org-lparse.el26
2 files changed, 21 insertions, 10 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog
index ef40c9316cf..b234021e8a5 100644
--- a/lisp/org/ChangeLog
+++ b/lisp/org/ChangeLog
@@ -1,3 +1,8 @@
12012-10-24 Jambunathan K <kjambunathan@gmail.com>
2
3 * org-lparse.el: Move some hooks from org-lparse to org-do-lparse
4 (Bug#12718).
5
12012-09-30 Abdó Roig-Maranges <abdo.roig@gmail.com> 62012-09-30 Abdó Roig-Maranges <abdo.roig@gmail.com>
2 7
3 * org-html.el (org-export-html-preprocess) 8 * org-html.el (org-export-html-preprocess)
diff --git a/lisp/org/org-lparse.el b/lisp/org/org-lparse.el
index 7024912050a..8dac907195a 100644
--- a/lisp/org/org-lparse.el
+++ b/lisp/org/org-lparse.el
@@ -435,10 +435,6 @@ PUB-DIR specifies the publishing directory."
435 (let* ((org-lparse-backend (intern native-backend)) 435 (let* ((org-lparse-backend (intern native-backend))
436 (org-lparse-other-backend (and target-backend 436 (org-lparse-other-backend (and target-backend
437 (intern target-backend)))) 437 (intern target-backend))))
438 (add-hook 'org-export-preprocess-hook
439 'org-lparse-strip-experimental-blocks-maybe)
440 (add-hook 'org-export-preprocess-after-blockquote-hook
441 'org-lparse-preprocess-after-blockquote)
442 (unless (org-lparse-backend-is-native-p native-backend) 438 (unless (org-lparse-backend-is-native-p native-backend)
443 (error "Don't know how to export natively to backend %s" native-backend)) 439 (error "Don't know how to export natively to backend %s" native-backend))
444 440
@@ -446,12 +442,7 @@ PUB-DIR specifies the publishing directory."
446 (org-lparse-reachable-p native-backend target-backend)) 442 (org-lparse-reachable-p native-backend target-backend))
447 (error "Don't know how to export to backend %s %s" target-backend 443 (error "Don't know how to export to backend %s %s" target-backend
448 (format "via %s" native-backend))) 444 (format "via %s" native-backend)))
449 (run-hooks 'org-export-first-hook) 445 (org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir)))
450 (org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir)
451 (remove-hook 'org-export-preprocess-hook
452 'org-lparse-strip-experimental-blocks-maybe)
453 (remove-hook 'org-export-preprocess-after-blockquote-hook
454 'org-lparse-preprocess-after-blockquote)))
455 446
456(defcustom org-lparse-use-flashy-warning nil 447(defcustom org-lparse-use-flashy-warning nil
457 "Control flashing of messages logged with `org-lparse-warn'. 448 "Control flashing of messages logged with `org-lparse-warn'.
@@ -594,6 +585,16 @@ version."
594 (setq-default org-deadline-line-regexp org-deadline-line-regexp) 585 (setq-default org-deadline-line-regexp org-deadline-line-regexp)
595 (setq-default org-done-keywords org-done-keywords) 586 (setq-default org-done-keywords org-done-keywords)
596 (setq-default org-maybe-keyword-time-regexp org-maybe-keyword-time-regexp) 587 (setq-default org-maybe-keyword-time-regexp org-maybe-keyword-time-regexp)
588
589 ;; Run first hook.
590 (run-hooks 'org-export-first-hook)
591
592 ;; Add pre-process hooks.
593 (add-hook 'org-export-preprocess-hook
594 'org-lparse-strip-experimental-blocks-maybe)
595 (add-hook 'org-export-preprocess-after-blockquote-hook
596 'org-lparse-preprocess-after-blockquote)
597
597 (let* (hfy-user-sheet-assoc ; let `htmlfontify' know that 598 (let* (hfy-user-sheet-assoc ; let `htmlfontify' know that
598 ; we are interested in 599 ; we are interested in
599 ; collecting styles 600 ; collecting styles
@@ -785,6 +786,11 @@ version."
785 org-lparse-toc 786 org-lparse-toc
786 href 787 href
787 ) 788 )
789 ;; Remove pre-process hooks.
790 (remove-hook 'org-export-preprocess-hook
791 'org-lparse-strip-experimental-blocks-maybe)
792 (remove-hook 'org-export-preprocess-after-blockquote-hook
793 'org-lparse-preprocess-after-blockquote)
788 794
789 (let ((inhibit-read-only t)) 795 (let ((inhibit-read-only t))
790 (org-unmodified 796 (org-unmodified