]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/track-changes.el (track-changes-fetch): Fix bug#75906
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 3 Feb 2025 20:50:36 +0000 (15:50 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:02:09 +0000 (09:02 +0100)
(cherry picked from commit 1c3a8bc9b51cf89fc1eff181d39941d7f0c7b2e2)

lisp/emacs-lisp/track-changes.el

index 25c9ad7c859e9d25bdbd2b42ce3d20b4f6336a5c..125314fa814f73161fc694795a1b1466f130da61 100644 (file)
@@ -372,7 +372,9 @@ and re-enable the TRACKER corresponding to ID."
                              track-changes--state))
               ;; Nothing to do.
               nil)
-          (cl-assert (not (memq id track-changes--clean-trackers)))
+          ;; ID may still be in `track-changes--clean-trackers' if
+          ;; `after-change-functions' was skipped.
+          ;;(cl-assert (not (memq id track-changes--clean-trackers)))
           (cl-assert (<= (point-min) beg end (point-max)))
           ;; Update the tracker's state *before* running `func' so we don't risk
           ;; mistakenly replaying the changes in case `func' exits non-locally.