Fix #4651: don't trigger formatters on org tangle
This commit is contained in:
parent
7c38eee96c
commit
377608c54b
1 changed files with 4 additions and 4 deletions
|
@ -523,10 +523,10 @@ 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)
|
(defadvice! +org--dont-trigger-save-hooks-a (orig-fn &rest args)
|
||||||
"`org-export-to-file' triggers save hooks, which may inadvertantly change
|
"Exporting and tangling trigger save hooks; inadvertantly triggering
|
||||||
the exported output (i.e. formatters)."
|
mutating hooks on exported output, like formatters."
|
||||||
:around #'org-export-to-file
|
:around '(org-export-to-file org-babel-tangle)
|
||||||
(let (before-save-hook after-save-hook)
|
(let (before-save-hook after-save-hook)
|
||||||
(apply orig-fn args)))
|
(apply orig-fn args)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue