]> git.eshelyaron.com Git - emacs.git/commit
(track-changes--after): Fix problem found in bug#73041
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 17 Oct 2024 15:39:19 +0000 (11:39 -0400)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 18:50:54 +0000 (20:50 +0200)
commitf9c1ad9791d34652ba82e46d6ba38955cb542231
treee52e3946401499bd5f36540f6342e9c5212b3f8e
parent11b22b5341741916e4f2086c8ab3719271392eb0
(track-changes--after): Fix problem found in bug#73041

When calling `track-changes--before` (e.g. because of a missing
b-f-c or for some other reason), it sets `track-changes--before-end`
to the right value so we shouldn't increment it right after.
Also, we should update `track-changes--buffer-size` before
calling `track-changes--before` so it doesn't risk signaling
a spurious inconsistency.

* lisp/emacs-lisp/track-changes.el (track-changes--after):
Update `track-changes--buffer-size` earlier, and don't increment
`track-changes--before-end` when we call `track-changes--before`.

(cherry picked from commit 90c6880a922029ba6e57adb2afe00a6fa57ef7fe)
lisp/emacs-lisp/track-changes.el