mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
; * lisp/autoinsert.el (auto-insert-alist): Fix last change.
This commit is contained in:
parent
bd1362b686
commit
477e44fca3
2 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue