emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/undo-fu 9cfc95948a 19/82: Cleanup: remove unnecessary calc


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu 9cfc95948a 19/82: Cleanup: remove unnecessary calculation, auto-load redo-all
Date: Thu, 7 Jul 2022 12:04:50 -0400 (EDT)

branch: elpa/undo-fu
commit 9cfc95948a4c23e50722dad08f2edbd744646402
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]