1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; Fix last change

* lisp/international/latexenc.el
(latexenc-find-file-coding-system): Check if `TeX-master' is
really set to a string globally.  (AUCTeX bug#78841)
This commit is contained in:
Arash Esbati 2025-07-07 21:12:30 +02:00
parent c120a338e6
commit db46d5e833

View file

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