]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak track-changes in Emacs 24
authorStefan Kangas <stefankangas@gmail.com>
Wed, 12 Mar 2025 00:15:07 +0000 (01:15 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Mar 2025 19:02:45 +0000 (20:02 +0100)
* lisp/emacs-lisp/track-changes.el (track-changes--after): Don't use
'incf', added in Emacs 31; this :core package supports Emacs 24.

(cherry picked from commit 523f7924570ae339a9661c910cc99c41676d7349)

lisp/emacs-lisp/track-changes.el

index b0d753e1cbdd3706a7125a577918370f23e02cb1..c01d96ec6b89d592c037eefda520cf90e95d35e0 100644 (file)
@@ -599,14 +599,14 @@ Details logged to `track-changes--error-log'")
   (track-changes--trace)
   (cl-assert track-changes--state)
   (let ((offset (- (- end beg) len)))
-    (incf track-changes--buffer-size offset)
+    (cl-incf track-changes--buffer-size offset)
     (if (and (eq track-changes--before-clean 'unset)
              (not track-changes--before-no))
          ;; This can be a sign that a `before-change-functions' went missing,
          ;; or that we called `track-changes--clean-state' between
          ;; a `before-change-functions' and `after-change-functions'.
          (track-changes--before beg end)
-      (incf track-changes--before-end offset))
+      (cl-incf track-changes--before-end offset))
     (setq track-changes--before-clean nil)
     (if (not (or track-changes--before-no
                  (save-restriction