[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master ca7b5dbfca: Put safe-local-variable property on auto-insert
From: |
Stefan Kangas |
Subject: |
master ca7b5dbfca: Put safe-local-variable property on auto-insert |
Date: |
Fri, 8 Jul 2022 07:08:42 -0400 (EDT) |
branch: master
commit ca7b5dbfcac36be79e2e1d3a7fb3d14c5404d7ca
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Put safe-local-variable property on auto-insert
* lisp/autoinsert.el (auto-insert): Put safe-local-variable
property to allow disabling auto-inserting without a warning.
---
lisp/autoinsert.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el
index c12c554498..29d10bc629 100644
--- a/lisp/autoinsert.el
+++ b/lisp/autoinsert.el
@@ -67,7 +67,7 @@ Possible values:
other insert if possible, but mark as unmodified.
Insertion is possible when something appropriate is found in
`auto-insert-alist'. When the insertion is marked as unmodified, you can
-save it with \\[write-file] RET.
+save it with \\[write-file] \\`RET'.
This variable is used when the function `auto-insert' is called, e.g.
when you do (add-hook \\='find-file-hook \\='auto-insert).
With \\[auto-insert], this is always treated as if it were t."
@@ -76,6 +76,9 @@ With \\[auto-insert], this is always treated as if it were t."
(other :tag "insert if possible, mark as unmodified."
not-modified)))
+;;;###autoload
+(put 'auto-insert 'safe-local-variable #'null)
+
(defcustom auto-insert-query 'function
"Non-nil means ask user before auto-inserting.
When this is `function', only ask when called non-interactively."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master ca7b5dbfca: Put safe-local-variable property on auto-insert,
Stefan Kangas <=