* 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)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 3 Feb 2025 20:50:36 +0000 (15:50 -0500)
lisp/emacs-lisp/track-changes.el

index 3f3b8d7bed9c7d5290b6e990b861a2127ee5b744..1aac53b5f3394531b8ec76683a85e5fe0c8d6d2a 100644 (file)
@@ -364,7 +364,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.