diff options
| -rw-r--r-- | lisp/emacs-lisp/track-changes.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/track-changes.el b/lisp/emacs-lisp/track-changes.el index 92d14959763..1d5c5e9917a 100644 --- a/lisp/emacs-lisp/track-changes.el +++ b/lisp/emacs-lisp/track-changes.el | |||
| @@ -555,16 +555,16 @@ Details logged to `track-changes--error-log'") | |||
| 555 | 555 | ||
| 556 | (defun track-changes--after (beg end len) | 556 | (defun track-changes--after (beg end len) |
| 557 | (cl-assert track-changes--state) | 557 | (cl-assert track-changes--state) |
| 558 | (and (eq track-changes--before-clean 'unset) | ||
| 559 | (not track-changes--before-no) | ||
| 560 | ;; This can be a sign that a `before-change-functions' went missing, | ||
| 561 | ;; or that we called `track-changes--clean-state' between | ||
| 562 | ;; a `before-change-functions' and `after-change-functions'. | ||
| 563 | (track-changes--before beg end)) | ||
| 564 | (setq track-changes--before-clean nil) | ||
| 565 | (let ((offset (- (- end beg) len))) | 558 | (let ((offset (- (- end beg) len))) |
| 566 | (cl-incf track-changes--before-end offset) | ||
| 567 | (cl-incf track-changes--buffer-size offset) | 559 | (cl-incf track-changes--buffer-size offset) |
| 560 | (if (and (eq track-changes--before-clean 'unset) | ||
| 561 | (not track-changes--before-no)) | ||
| 562 | ;; This can be a sign that a `before-change-functions' went missing, | ||
| 563 | ;; or that we called `track-changes--clean-state' between | ||
| 564 | ;; a `before-change-functions' and `after-change-functions'. | ||
| 565 | (track-changes--before beg end) | ||
| 566 | (cl-incf track-changes--before-end offset)) | ||
| 567 | (setq track-changes--before-clean nil) | ||
| 568 | (if (not (or track-changes--before-no | 568 | (if (not (or track-changes--before-no |
| 569 | (save-restriction | 569 | (save-restriction |
| 570 | (widen) | 570 | (widen) |