Rudolf Adamkovič <salu...@me.com> writes: > Ihor Radchenko <yanta...@gmail.com> writes: > >> Rudolf, please kindly confirm that the export performance is back to >> satisfactory on the latest main. > > Performance back to normal! Though, I noticed two issues. > > *** ISSUE 1: Error when exporting. *** > > While exporting, I see the error: > > "Org mode fontification error in #<buffer *temp*> at 10" > > The error does not bother me, but I mention it in the case it relates to > the next issue.
I do not see how it is related. Do you see the error with your config or with clean Emacs? > *** ISSUE 2: Problems re-opening the notebook. *** > > Reproduction steps: > > 1. open 'notebook.org' (C-x C-f ~/notebook.org RET) > 2. export to HTML and open (C-c C-e h o) > 3. kill the notebook buffer (C-x k RET) > 4. re-open notebook (C-x C-f ~/notebook.org RET) > > Expected: > > 'notebook.org' opens > > Actual: > > *Org HTML Export LaTeX* opens, with the following content: > > \begin{align*} > \frac{dy}{dx} > & = y \left( -1 - 2 \tan x - \frac{2x + 1}{x^2 + x + 1} \right) > \\ > & = \frac{e^{-x} {\cos}^2 x}{x^2 + x + 1} > \left( -1 - 2 \tan x - \frac{2x + 1}{x^2 + x + 1} \right) > \end{align*} Oops. Another side-effect of `buffer-file-name'. Fixed now. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=86b6d843f6e8d33c0dcf414f7fda2b1ac6492550 > P.S. The original file remains intact, but given the way we implement > exports in Org, I think we should add two tests to the test suite to > verify that: > (2) no corruption happens to the original file after export. Done. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3de74bbeff704a1e297d0f8c445790928e71344f > (1) re-opening the file after export always re-opens it, and I am not sure how to test this part. I instead documented the caveats in `org-export-copy-buffer' docstring and in the `org-html-format-latex'. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=17708ab3fa4f2a0f118bf86cebd4753f50e8bb26 https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=86b6d843f6e8d33c0dcf414f7fda2b1ac6492550 Though maybe the code in `org-html-format-latex' should be factored out into a separate macro like `org-export-with-persistent-buffer-copy'. The macro will accept buffer name as an argument and do everything necessary to not keep the `buffer-file-name' around. -- Ihor Radchenko // yantar92, Org mode contributor, 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>