1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

; * lisp/autoinsert.el (auto-insert-alist): Fix last change.

This commit is contained in:
Eli Zaretskii 2025-08-09 13:38:10 +03:00
parent bd1362b686
commit 477e44fca3
2 changed files with 7 additions and 6 deletions

View file

@ -323,11 +323,11 @@ The document was typeset with
"))
"A list specifying text to insert by default into a new file.
Elements look like (CONDITION . ACTION) or ((CONDITION . DESCRIPTION) . ACTION).
CONDITION may be a regexp that must match the new file's name, or it may be
a symbol that must match the major mode for this element to apply.
CONDITION can also be a custom predicate of no arguments declared with
'(predicate FUNCTION)'. Emacs will insert the text if the predicate
function returns non-nil.
CONDITION may be a regexp that must match the new file's name, or it
may be a symbol that must match the major mode for this element to apply.
CONDITION can also be a custom predicate of no arguments declared
with (predicate FUNCTION). Emacs will insert the text if the
predicate function returns non-nil.
Only the first matching element is effective.
Optional DESCRIPTION is a string for filling `auto-insert-prompt'.
ACTION may be a skeleton to insert (see `skeleton-insert'), an absolute

View file

@ -219,7 +219,8 @@ It is checked for buffer-local `auto-revert-notify-watch-descriptor'."
,@body)
(customize-set-variable 'auto-revert-interval auto-revert-interval-orig)
(setq auto-revert--lockout-interval auto-revert--lockout-interval-orig)
(file-notify-rm-all-watches))))
(ignore-errors (file-notify-rm-all-watches))
(sleep-for 1))))
(defun auto-revert-test--write-region (string file &optional append)
"Write STRING to FILE."