George Huebner <[email protected]> writes:

> When exporting an Org file asynchronously, the entire contents of that file 
> are included as a string within the temp org-export-process file (see the 
> implementation of org-export-async-start). Because this is a string, any 
> double quotes within the original Org file are escaped with a backslash.

Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=90e8d8b04

> `----
> (As a side note, when reproducing this I also realized that 
> org-export-async-start incorrectly assumes the existence of either 
> user-init-file or org-export-async-init-file.)

Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e00259667

> My proposal is to "disable" the invocation of the 
> hack-read-symbol-shorthands-function when loading the org-export-proceess 
> temp file. Note that buffer local variables of the org mode buffer are 
> already handled by org-element--generate-copy-script.
>
> +         ";; -*- coding: utf-8-emacs-unix; lexical-binding:t -*-
> +(setq hack-read-symbol-shorthands-function `(lambda (&rest args) (unless 
> (string-match-p \"org-export-process\" load-file-name) (apply 
> ,hack-read-symbol-shorthands-function args))))"

I used a much simpler fix that just adds a page separator at the end of
the file. This will prevent Emacs from searching local variable block.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to