diff --git a/lisp/international/latexenc.el b/lisp/international/latexenc.el index fea5be6dbd7..9955c0fb569 100644 --- a/lisp/international/latexenc.el +++ b/lisp/international/latexenc.el @@ -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)