From 30df8657fbcfdd47d51c724a391752f7c27e7a29 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Fri, 5 Jun 2026 12:52:00 -0400 Subject: [PATCH] (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. --- lisp/textmodes/tex-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 86a4b1d006e..d6be9d511d6 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -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