Ihor Radchenko <[email protected]> writes: > As for more near-term solution, we should at least document :output-file > behavior in the docstring. Whether we need to throw an error if > :output-file is not defined is another question. It mainly boils down > what is more useful - is it better to throw the problem into the caller's > face or is it better to avoid failures. > > Another, even more radical, option could be falling back to > mathjax/verbatim when :output-file is nil. > > I also note that the reported problem affects exporting to buffer from > emacs -Q. If org-html-with-latex is set to, say, 'dvipng, exporting an > Org buffer with latex fragments to buffer and not to file, will err.
I actually missed that the bug was not absent before Org 9.8. Since it is a regression, the most safe approach is simply falling back to the old behavior when :output-file is not available. I've done it on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=aa3ef4c17 Canceled (the patch here, in favor or my fix). -- 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>
