]> git.eshelyaron.com Git - emacs.git/commit
whitespace.el: Collaborate better with `combine-after-change-calls`
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 5 May 2025 03:42:12 +0000 (23:42 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 08:49:48 +0000 (10:49 +0200)
commit715562f280da2c198fb22cb359a735be9f6cc73a
tree05dcab1822190197970b9c944c6fcf69cf901dc4
parent5e8432932bff62249f58cf51769589f73ab1be11
whitespace.el: Collaborate better with `combine-after-change-calls`

* lisp/whitespace.el: Remove redundant `:group` arguments.
Prefer #' to quote function names.
(whitespace-buffer-changed): Delete function.
(whitespace-color-on): Don't touch `before-change-functions`.
(whitespace--update-bob-eob): Set `whitespace-buffer-changed` here, instead.
(whitespace-post-command-hook): Apply De Morgan.
(whitespace--empty-at-bob-matcher, whitespace-post-command-hook)
(whitespace--update-bob-eob): Use `point-min` and `point-max`.

(cherry picked from commit 7cb7e96a5cca6778054cf74fd2c7548ca40f0691)
lisp/whitespace.el