;; We are on a boundary, so we create a new action.
(gnus-undo-boundary
(push (list function) gnus-undo-actions)
- ;; Don't let the undo actions grow infinitely.
- (when (> (length gnus-undo-actions) 100)
- (setcdr (nthcdr 100 gnus-undo-actions) nil))
(setq gnus-undo-boundary nil))
;; Prepend the function to an old action.
(gnus-undo-actions
(provide 'gnus-undo)
-;; arch-tag: 0d787bc7-787d-499a-837f-211d2cb07f2e
;;; gnus-undo.el ends here