diff options
author | Alan Mackenzie <acm@muc.de> | 2018-04-03 16:16:49 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2018-04-03 16:16:49 +0000 |
commit | 424103a6e351a6d2d8b94f86998c90fdf6afea27 (patch) | |
tree | 230a4cf0b7db30c96df632fb6cdcfd552c96ecea /lisp/newcomment.el | |
parent | 1233bcb0a78755ec4f3a925b84c15b1c6f715b1c (diff) | |
download | emacs-424103a6e351a6d2d8b94f86998c90fdf6afea27.tar.gz emacs-424103a6e351a6d2d8b94f86998c90fdf6afea27.tar.bz2 emacs-424103a6e351a6d2d8b94f86998c90fdf6afea27.zip |
Introduce new macro combine-change-calls
This macro is a bit like combine-after-change-calls, but also works with a
non-null before-change-functions. It suppresses the operation of the change
hooks on a possibly large sequence of buffer modifications, replacing them
with a single invocation of before-change-functions at the start, and a single
invocation of after-change-functions at the end.
* lisp/subr.el (undo--combining-change-calls): New variable.
(combine-change-calls-1, undo--wrap-and-run-primitive-undo): New functions.
(combine-change-calls): New macro.
* doc/lispref/text.texi (Change Hooks): Document combine-change-calls.
* etc/NEWS: Add an entry under "Lisp Changes" for combine-change-calls.
Diffstat (limited to 'lisp/newcomment.el')
0 files changed, 0 insertions, 0 deletions