NOTE: This bug might be gone after recent updates to ox.el, this needs to be verified.
Description:
Call org-export-dispatch in a file that has a link to another Org file. The linked file (journal/2023-01-30.org in the backtrace below) is opened up by org-id-find in the export process.
This file has #+startup: latexpreview, so LaTeX preview generation occurs for that file.
Everything in org-mode-hook runs for that file as well! By the time the latex preview generation is done, that file has been closed by the export process
Result: flurry of latex preview errors for overlays that don't exist any more
Additional errors caused by functions in org-mode-hook that were expecting the window to be visible
Workaround
Don't open link destination files during the export process in the first place.
Failing that:
Ignore #+startup: latexpreview when opening files using the export process.
Don't run org-mode-hook on files opened during the export process.
NOTE: This bug might be gone after recent updates to
ox.el
, this needs to be verified.Description:
Call org-export-dispatch in a file that has a link to another Org file. The linked file (
journal/2023-01-30.org
in the backtrace below) is opened up byorg-id-find
in the export process.This file has
#+startup: latexpreview
, so LaTeX preview generation occurs for that file. Everything in org-mode-hook runs for that file as well! By the time the latex preview generation is done, that file has been closed by the export processResult: flurry of latex preview errors for overlays that don't exist any more Additional errors caused by functions in org-mode-hook that were expecting the window to be visible
Workaround
Don't open link destination files during the export process in the first place.
Failing that:
Backtrace