mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-20 12:18:31 +00:00
ox: Ignore org-mode-hook' and
kill-emacs-hook' in asynchronous export
* lisp/ox.el (org-export-async-start): Ignore `org-mode-hook' and `kill-emacs-hook'. The first one has been run in the original buffer. The second is not necessary and can pollute output to a temporary buffer (e.g. with `org-clock-persistence-insinuate').
This commit is contained in:
parent
7d48126665
commit
ce3e6555d3
|
@ -5091,6 +5091,10 @@ and
|
||||||
"%S"
|
"%S"
|
||||||
`(with-temp-buffer
|
`(with-temp-buffer
|
||||||
,(when org-export-async-debug '(setq debug-on-error t))
|
,(when org-export-async-debug '(setq debug-on-error t))
|
||||||
|
;; Ignore `org-mode-hook' as it has been run already
|
||||||
|
;; in the original buffer. Ignore `kill-emacs-hook'
|
||||||
|
;; as we need a truly non-interactive process.
|
||||||
|
(setq org-mode-hook nil kill-emacs-hook nil)
|
||||||
;; Initialize `org-mode' and export framework in the
|
;; Initialize `org-mode' and export framework in the
|
||||||
;; external process.
|
;; external process.
|
||||||
(org-mode)
|
(org-mode)
|
||||||
|
|
Loading…
Reference in a new issue