]> git.eshelyaron.com Git - emacs.git/commit
whitespace: Fix unintended change in buffer modification status
authorRichard Hansen <rhansen@rhansen.org>
Mon, 19 Dec 2022 04:04:00 +0000 (23:04 -0500)
committerEli Zaretskii <eliz@gnu.org>
Mon, 19 Dec 2022 13:44:07 +0000 (15:44 +0200)
commit64163618d21bfa31e56b47c813ce50681c3d3556
tree859a80d041c4d3d29fea4b766d5fe8f63947c86e
parenta75d1da911c07a201a19d8827cd74f181220c274
whitespace: Fix unintended change in buffer modification status

* lisp/whitespace.el (whitespace--empty-at-bob-matcher)
whitespace--empty-at-eob-matcher, whitespace--update-bob-eob):
Silently add the `font-lock-multiline' text property when
highlighting beginning-of-buffer and end-of-buffer empty lines
to prevent Emacs from running modification hooks or considering
the buffer to be modified (Bug#60066).

* test/lisp/whitespace-tests.el
(whitespace-tests--empty-bob-eob-modified): Add a regression test.
lisp/whitespace.el
test/lisp/whitespace-tests.el