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:
parent
d76d50c1c9
commit
7c38eee96c
1 changed files with 4 additions and 3 deletions
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue