Fix #3175: inhibit save hooks on org-export-to-file
This commit is contained in:
parent
8da2472bb4
commit
d5d0fb95e2
1 changed files with 7 additions and 0 deletions
|
@ -444,6 +444,13 @@ relative to `org-directory', unless it is an absolute path."
|
||||||
(mathjax . t)
|
(mathjax . t)
|
||||||
(variable . "revealjs-url=https://revealjs.com"))))
|
(variable . "revealjs-url=https://revealjs.com"))))
|
||||||
|
|
||||||
|
(defadvice! +org--dont-trigger-save-hooks-on-export-a (orig-fn &rest args)
|
||||||
|
"`org-export-to-file' triggers save hooks, which may inadvertantly change
|
||||||
|
the exported output (i.e. formatters)."
|
||||||
|
:around #'org-export-to-file
|
||||||
|
(let (before-save-hook after-save-hook)
|
||||||
|
(apply orig-fn args)))
|
||||||
|
|
||||||
(defadvice! +org--fix-async-export-a (orig-fn &rest args)
|
(defadvice! +org--fix-async-export-a (orig-fn &rest args)
|
||||||
:around #'org-export-to-file
|
:around #'org-export-to-file
|
||||||
(if (not org-export-in-background)
|
(if (not org-export-in-background)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue