mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #4727: wrong-type-arg error on async org export
Because org-export-async-init-file will have a different value in the temp buffer created for the temp file.
This commit is contained in:
@ -539,9 +539,10 @@ the exported output (i.e. formatters)."
|
||||
,(or org-export-async-debug
|
||||
debug-on-error)
|
||||
load-path ',load-path)
|
||||
(unwind-protect
|
||||
(load ,(or old-async-init-file user-init-file)
|
||||
nil t)
|
||||
(delete-file ,org-export-async-init-file))
|
||||
(delete-file load-file-name)))
|
||||
(current-buffer)))
|
||||
(apply orig-fn args))))
|
||||
|
||||
|
Reference in New Issue
Block a user