From faa7fa050164d7060c1fbcee03d1b02f8cba5e77 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 25 Apr 2026 10:36:29 +0300 Subject: [PATCH] ; * lisp/simple.el (Info-documentlanguage): Add a local safe variable. --- lisp/simple.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/simple.el b/lisp/simple.el index 441f7ff3440..2b2380165f6 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -11700,6 +11700,14 @@ seconds." (setq undo-auto-current-boundary-timer (run-at-time 5 nil #'undo-auto--boundary-timer))))))) + +(defvar-local Info-documentlanguage nil + "Document language as set by the Texinfo source. +Currently, this is not used.") +;; This is to avoid annoying prompts when visiting Info files as normal +;; files. Texinfo 7.3 puts this variable into Info files it produces. +(put 'Info-documentlanguage 'safe-local-variable 'symbolp) + (provide 'simple) ;;; simple.el ends here