# end of file during parsing during org-mode export to latex

I have a weird thing going on with emacs on Fedora 29.

Once in a blue moon, my Emacs will go HA! you cannot export to LaTeX with the "error": end of file during parsing during. However, if I move the file to my Mac with macOS Mojave with the same version of Emacs (26.1) and org-mode, and try to export the file, I do not get the error. Any ideas what can cause this issue and how to solve it?

The packages I have installed:

• auctex
• flycheck
• flyspell-corect
• flyspell-popup
• json-mode
• powerline
• magit
• rust-mode
• are the versions of org also the same? – andrej Apr 14 at 11:56
• yes, they are, I should have written that as well. – Lars Nielsen Apr 14 at 11:58
• One possible source of the error message is a missing closing parentheses. The last word during is a bit strange though. Is that really the full error message? Turn on Options -> Enter debugger on error until the error happens the next time. If you cannot determine the error from that backtrace yourself post the backtrace here. Have a look into the *Messages*' buffer for more information about the problem (messages immediately before the error). The error could happen through some autoloaded defective package. – Tobias Apr 14 at 13:32
• Is the problem reproducible with emacs -Q and M-x package-initialize? Note, after emacs -Q you need to execute M-x package-initialize`. Otherwise you are potentially dealing with a quite differently configured emacs. The downside is that one also needs to know the list of installed packages for the reproduction of the problem. – Tobias Apr 14 at 13:39
• Yes I can reproduce – Lars Nielsen Apr 14 at 16:06