emacs/doc
mattiasdrp bd1362b686 Autoinsert: Allow condition to be a function
Currently a condition can only be a regexp or a major-mode symbol but
there's no real reason to not allow any predicate as a condition.
* doc/misc/autotype.texi: Document the new condition type in
'auto-insert-alist'.
* etc/NEWS: Announce the new condition type in 'auto-insert-alist'.
* lisp/autoinsert.el (auto-insert-alist): Add the new condition type to
the variable documentation.
(auto-insert): Change the way the condition is matched to allow for
custom predicates.
* test/lisp/autoinsert-tests.el
(autoinsert-tests-auto-insert-lambda/-nil): Add two tests for
lambdas (nil and t cases)
(autoinsert-tests-auto-insert-predicate/-nil): Add two tests for named
predicates (nil and t cases) (Bug#79178)
2025-08-09 13:35:48 +03:00
..
emacs Add 'other-window-backward' for a default binding (bug#78803) 2025-08-02 17:25:14 +03:00
lispintro ; Fix file name in "Loading Files" doc. 2025-07-24 22:13:47 -07:00
lispref Add auto-revert-buffer-in-progress-p 2025-08-08 13:26:16 +02:00
man Remove ctags program 2025-03-22 11:57:29 -07:00
misc Autoinsert: Allow condition to be a function 2025-08-09 13:35:48 +03:00
translations Update copyright year to 2025 2025-01-02 18:39:42 +01:00