branch: main
commit c6ed86de398aa858401fc8c987778e6f43b41fc8
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>

    Remove --jobname arg from LuaLaTeX invocation
    
    * tex.el (TeX-engine-alist-builtin): Remove --jobname argument which
    causes trouble for advanced usages (See
    https://lists.gnu.org/r/auctex/2026-03/msg00000.html)
    This argument used to be there for compatibility with very old LuaLaTeX.
    * NEWS.org: Announce the removal and give instruction for users who need
    --jobname argument.
---
 NEWS.org | 7 +++++++
 tex.el   | 4 +---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/NEWS.org b/NEWS.org
index 37fa1d09..614f8020 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -16,6 +16,13 @@
 ** Changed
 
 - Support new language names provided by babel-german v2.99.
+- Remove ~--jobname~ argument from default LuaLaTeX invocation.  If this
+  causes trouble for you, we first recommend to update your (very old)
+  TeX distribution.  But if you can't do that for some reason, add the
+  following entry to the customize option ~TeX-engine-alist~:
+  #+begin_src emacs-lisp
+    (luatex "LuaTeX" "luatex" "lualatex --jobname=%(s-filename-only)" "luatex")
+  #+end_src
 
 * [14.1.2] - 2026-01-14
 
diff --git a/tex.el b/tex.el
index 91d29d63..b34ab258 100644
--- a/tex.el
+++ b/tex.el
@@ -1582,9 +1582,7 @@ Check the `TeX-view-program-selection' variable" viewer)))
 (defvar TeX-engine-alist-builtin
   '((default "Default" TeX-command LaTeX-command ConTeXt-engine)
     (xetex "XeTeX" "xetex" "xelatex" "xetex")
-    ;; Some lualatex versions before 0.71 would use "texput" as file
-    ;; name if --jobname were not supplied
-    (luatex "LuaTeX" "luatex" "lualatex --jobname=%(s-filename-only)" "luatex")
+    (luatex "LuaTeX" "luatex" "lualatex" "luatex")
     (omega "Omega" TeX-Omega-command LaTeX-Omega-command ConTeXt-Omega-engine))
   "Alist of built-in TeX engines and associated commands.
 For a description of the format see `TeX-engine-alist'.")

Reply via email to