branch: elpa/undo-fu
commit 9cfc95948a4c23e50722dad08f2edbd744646402
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Cleanup: remove unnecessary calculation, auto-load redo-all
---
undo-fu.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/undo-fu.el b/undo-fu.el
index 6590e7fa2a..c1c2a32da1 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -135,6 +135,7 @@ Returns the number of steps to reach this list or
COUNT-LIMIT."
;; Public functions.
+;;;###autoload
(defun undo-fu-only-redo-all ()
"Redo all actions until the initial undo step.
@@ -143,9 +144,7 @@ wraps the `undo' function."
(unless undo-fu--checkpoint
(user-error "Redo end-point not found!"))
- (undo-fu--with-message-suffix
- " All"
- (undo-fu-only-redo (undo-fu--count-redo-available undo-fu--checkpoint
most-positive-fixnum))))
+ (undo-fu--with-message-suffix " All" (undo-fu-only-redo
most-positive-fixnum)))
;;;###autoload
(defun undo-fu-only-redo (&optional arg)