Fix bug in latexenc when AUCTeX is loaded

* lisp/international/latexenc.el
(latexenc-find-file-coding-system): Set file name correctly when
`TeX-master' is a string.  (Bug#81099)
This commit is contained in:
Al Haji-Ali 2026-05-22 12:56:33 +01:00 committed by Stefan Monnier
parent e9d1367a32
commit 35a82765bf

View file

@ -157,7 +157,8 @@ coding system names is determined from `latex-inputenc-coding-alist'."
nil t) nil t)
(match-string 2) (match-string 2)
(or (and (bound-and-true-p TeX-master) (or (and (bound-and-true-p TeX-master)
(stringp TeX-master)) (stringp TeX-master)
TeX-master)
(bound-and-true-p tex-main-file))))) (bound-and-true-p tex-main-file)))))
(dolist (ext `("" ,(if (boundp 'TeX-default-extension) (dolist (ext `("" ,(if (boundp 'TeX-default-extension)
(concat "." TeX-default-extension) (concat "." TeX-default-extension)