(tex-main-file): Add forgotten safety predicate (bug#81099)

That variable is commonly set file-locally.

* lisp/textmodes/tex-mode.el (tex-main-file): Add safety predicate.
This commit is contained in:
Arash Esbati 2026-06-05 12:52:00 -04:00 committed by Stefan Monnier
parent 35a82765bf
commit 30df8657fb

View file

@ -89,6 +89,7 @@ The command `tex-file' runs TeX on the file specified by `tex-main-file'
if the variable is non-nil."
:type '(choice (const :tag "None" nil)
file)
:safe (lambda (x) (or (stringp x) (null x)))
:group 'tex-file)
;;;###autoload