diff options
| author | Chong Yidong | 2012-10-25 02:16:41 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-10-25 02:16:41 +0800 |
| commit | 576978b40060f089567e5f1db7274d5aabf2c088 (patch) | |
| tree | 3b00e35307d90ac10dd8b41a299d7be310d7752b | |
| parent | 8bfcb8a6a8b37bc38b2f5407d4ab7eb886b9e79c (diff) | |
| download | emacs-576978b40060f089567e5f1db7274d5aabf2c088.tar.gz emacs-576978b40060f089567e5f1db7274d5aabf2c088.zip | |
Revert last change to org-lparse.el
| -rw-r--r-- | lisp/org/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/org/org-lparse.el | 26 |
2 files changed, 10 insertions, 21 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index b234021e8a5..ef40c9316cf 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,8 +1,3 @@ | |||
| 1 | 2012-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 | |||
| 6 | 2012-09-30 Abdó Roig-Maranges <abdo.roig@gmail.com> | 1 | 2012-09-30 Abdó Roig-Maranges <abdo.roig@gmail.com> |
| 7 | 2 | ||
| 8 | * org-html.el (org-export-html-preprocess) | 3 | * org-html.el (org-export-html-preprocess) |
diff --git a/lisp/org/org-lparse.el b/lisp/org/org-lparse.el index 8dac907195a..7024912050a 100644 --- a/lisp/org/org-lparse.el +++ b/lisp/org/org-lparse.el | |||
| @@ -435,6 +435,10 @@ 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) | ||
| 438 | (unless (org-lparse-backend-is-native-p native-backend) | 442 | (unless (org-lparse-backend-is-native-p native-backend) |
| 439 | (error "Don't know how to export natively to backend %s" native-backend)) | 443 | (error "Don't know how to export natively to backend %s" native-backend)) |
| 440 | 444 | ||
| @@ -442,7 +446,12 @@ PUB-DIR specifies the publishing directory." | |||
| 442 | (org-lparse-reachable-p native-backend target-backend)) | 446 | (org-lparse-reachable-p native-backend target-backend)) |
| 443 | (error "Don't know how to export to backend %s %s" target-backend | 447 | (error "Don't know how to export to backend %s %s" target-backend |
| 444 | (format "via %s" native-backend))) | 448 | (format "via %s" native-backend))) |
| 445 | (org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir))) | 449 | (run-hooks 'org-export-first-hook) |
| 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))) | ||
| 446 | 455 | ||
| 447 | (defcustom org-lparse-use-flashy-warning nil | 456 | (defcustom org-lparse-use-flashy-warning nil |
| 448 | "Control flashing of messages logged with `org-lparse-warn'. | 457 | "Control flashing of messages logged with `org-lparse-warn'. |
| @@ -585,16 +594,6 @@ version." | |||
| 585 | (setq-default org-deadline-line-regexp org-deadline-line-regexp) | 594 | (setq-default org-deadline-line-regexp org-deadline-line-regexp) |
| 586 | (setq-default org-done-keywords org-done-keywords) | 595 | (setq-default org-done-keywords org-done-keywords) |
| 587 | (setq-default org-maybe-keyword-time-regexp org-maybe-keyword-time-regexp) | 596 | (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 | |||
| 598 | (let* (hfy-user-sheet-assoc ; let `htmlfontify' know that | 597 | (let* (hfy-user-sheet-assoc ; let `htmlfontify' know that |
| 599 | ; we are interested in | 598 | ; we are interested in |
| 600 | ; collecting styles | 599 | ; collecting styles |
| @@ -786,11 +785,6 @@ version." | |||
| 786 | org-lparse-toc | 785 | org-lparse-toc |
| 787 | href | 786 | href |
| 788 | ) | 787 | ) |
| 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) | ||
| 794 | 788 | ||
| 795 | (let ((inhibit-read-only t)) | 789 | (let ((inhibit-read-only t)) |
| 796 | (org-unmodified | 790 | (org-unmodified |