Function: undo-auto--boundaries

undo-auto--boundaries is a byte-compiled function defined in simple.el.gz.

Signature

(undo-auto--boundaries CAUSE)

Documentation

Check recently changed buffers and add a boundary if necessary.

REASON describes the reason that the boundary is being added; see undo-last-boundary for more information.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun undo-auto--boundaries (cause)
  "Check recently changed buffers and add a boundary if necessary.
REASON describes the reason that the boundary is being added; see
`undo-last-boundary' for more information."
  ;; (Bug #23785) All commands should ensure that there is an undo
  ;; boundary whether they have changed the current buffer or not.
  (when (eq cause 'command)
    (add-to-list 'undo-auto--undoably-changed-buffers (current-buffer)))
  (dolist (b undo-auto--undoably-changed-buffers)
          (when (buffer-live-p b)
            (with-current-buffer b
              (undo-auto--ensure-boundary cause))))
  (setq undo-auto--undoably-changed-buffers nil))