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:
Henrik Lissner 2021-03-10 12:53:54 -05:00
parent d76d50c1c9
commit 7c38eee96c

View file

@ -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))))