diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/simple.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index b66827dfa63..43ad43cf927 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2940,9 +2940,17 @@ behavior." | |||
| 2940 | (cdr buffer-undo-list)))))) | 2940 | (cdr buffer-undo-list)))))) |
| 2941 | (setq undo-auto--last-boundary-cause 0))))) | 2941 | (setq undo-auto--last-boundary-cause 0))))) |
| 2942 | 2942 | ||
| 2943 | ;; This function is called also from one place in fileio.c. We call | ||
| 2944 | ;; this function, rather than undoable-change because it reduces the | ||
| 2945 | ;; number of lisp functions we have to use fboundp for to avoid | ||
| 2946 | ;; bootstrap issues. | ||
| 2947 | (defun undo-auto--undoable-change-no-timer () | ||
| 2948 | "Record `current-buffer' as changed." | ||
| 2949 | (add-to-list 'undo-auto--undoably-changed-buffers (current-buffer))) | ||
| 2950 | |||
| 2943 | (defun undo-auto--undoable-change () | 2951 | (defun undo-auto--undoable-change () |
| 2944 | "Called after every undoable buffer change." | 2952 | "Called after every undoable buffer change." |
| 2945 | (add-to-list 'undo-auto--undoably-changed-buffers (current-buffer)) | 2953 | (undo-auto--undoable-change-no-timer) |
| 2946 | (undo-auto--boundary-ensure-timer)) | 2954 | (undo-auto--boundary-ensure-timer)) |
| 2947 | ;; End auto-boundary section | 2955 | ;; End auto-boundary section |
| 2948 | 2956 | ||