Stephen Wheeler <cont...@stephen-wheeler.info> writes: > You're right that Org itself does not call > `latexenc-find-file-coding-system`, but the error appears during PDF export > when using Org 9.7.11 bundled with the Snap version of Emacs 31.0.50. > > Here is the **full backtrace**, obtained with `debug-on-error` enabled, using > the default `org-latex-export-to-pdf` without any redefinition of > `org-latex-compile`: > > Debugger entered--Lisp error: (wrong-type-argument sequencep t) > latexenc-find-file-coding-system((insert-file-contents > "/home/steve/UniDrop/Projects/SEPSE/Critique/migrationRedesignPlan.tex" nil > nil nil nil)) > org-latex-compile("migrationRedesignPlan.tex") > org-export-to-file(latex "migrationRedesignPlan.tex" nil nil nil nil nil > org-latex-compile) > ... > My environment: > > Emacs: 31.0.50 (via Snap)
I am pretty sure that it has nothing to do with Org mode. Looking at the recent changes in that function, I see two commits: 22daed7ce0e and db46d5e8333 that fixes the previous commit. Considering that you are on the bleeding edge Emacs, you might be, for example, between 22daed7ce0e and db46d5e8333. I recommend to: (1) upgrade Emacs from the latest master; (2) if that does not help, report the bug to Emacs devs. -- 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>