]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert last change to org-lparse.el
authorChong Yidong <cyd@gnu.org>
Wed, 24 Oct 2012 18:16:41 +0000 (02:16 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 24 Oct 2012 18:16:41 +0000 (02:16 +0800)
lisp/org/ChangeLog
lisp/org/org-lparse.el

index b234021e8a57b92dae5fc9ff24ea877a1d6b7e0d..ef40c9316cf97b54bd5f8e812516f5652006211d 100644 (file)
@@ -1,8 +1,3 @@
-2012-10-24  Jambunathan K  <kjambunathan@gmail.com>
-
-       * org-lparse.el: Move some hooks from org-lparse to org-do-lparse
-       (Bug#12718).
-
 2012-09-30  Abdó Roig-Maranges  <abdo.roig@gmail.com>
 
        * org-html.el (org-export-html-preprocess)
index 8dac907195a96421055f4544fcb96189f29e36aa..7024912050aedbdd5c5a9e3e08628315df406a06 100644 (file)
@@ -435,6 +435,10 @@ PUB-DIR specifies the publishing directory."
   (let* ((org-lparse-backend (intern native-backend))
         (org-lparse-other-backend (and target-backend
                                        (intern target-backend))))
+    (add-hook 'org-export-preprocess-hook
+             'org-lparse-strip-experimental-blocks-maybe)
+    (add-hook 'org-export-preprocess-after-blockquote-hook
+             'org-lparse-preprocess-after-blockquote)
     (unless (org-lparse-backend-is-native-p native-backend)
       (error "Don't know how to export natively to backend %s" native-backend))
 
@@ -442,7 +446,12 @@ PUB-DIR specifies the publishing directory."
                (org-lparse-reachable-p native-backend target-backend))
       (error "Don't know how to export to backend %s %s" target-backend
             (format "via %s" native-backend)))
-    (org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir)))
+    (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)))
 
 (defcustom org-lparse-use-flashy-warning nil
   "Control flashing of messages logged with `org-lparse-warn'.
@@ -585,16 +594,6 @@ version."
   (setq-default org-deadline-line-regexp org-deadline-line-regexp)
   (setq-default org-done-keywords org-done-keywords)
   (setq-default org-maybe-keyword-time-regexp org-maybe-keyword-time-regexp)
-
-  ;; Run first hook.
-  (run-hooks 'org-export-first-hook)
-
-  ;; Add pre-process hooks.
-  (add-hook 'org-export-preprocess-hook
-           'org-lparse-strip-experimental-blocks-maybe)
-  (add-hook 'org-export-preprocess-after-blockquote-hook
-           'org-lparse-preprocess-after-blockquote)
-
   (let* (hfy-user-sheet-assoc          ; let `htmlfontify' know that
                                        ; we are interested in
                                        ; collecting styles
@@ -786,11 +785,6 @@ version."
         org-lparse-toc
         href
         )
-    ;; Remove pre-process hooks.
-    (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)
 
     (let ((inhibit-read-only t))
       (org-unmodified