aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notes/java
diff options
context:
space:
mode:
authormattiasdrp2025-08-08 15:16:24 +0200
committerEli Zaretskii2025-08-09 13:35:48 +0300
commitbd1362b686c7dd9083322a587b7738d0da12395c (patch)
tree19384664492a8669f5fdece049e8250fb56e0808 /admin/notes/java
parent6ffa926f903a424457910a4e3f54d41fa55821a0 (diff)
downloademacs-bd1362b686c7dd9083322a587b7738d0da12395c.tar.gz
emacs-bd1362b686c7dd9083322a587b7738d0da12395c.zip
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)
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions