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

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

[nongnu] elpa/undo-fu e07fd219a0 74/82: Sync backported functions from E


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu e07fd219a0 74/82: Sync backported functions from Emacs
Date: Thu, 7 Jul 2022 12:04:55 -0400 (EDT)

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

    Sync backported functions from Emacs
    
    More useful error message for redo.
---
 undo-fu.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/undo-fu.el b/undo-fu.el
index c5d895dae8..7df2a5ad74 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -83,7 +83,7 @@ Instead, explicitly call `undo-fu-disable-checkpoint'."
   (interactive "*p")
   (cond
     ((not (undo-fu--backport-undo--last-change-was-undo-p buffer-undo-list))
-      (user-error "No undo to undo"))
+      (user-error "No undone changes to redo"))
     (t
       (let*
         (
@@ -92,7 +92,7 @@ Instead, explicitly call `undo-fu-disable-checkpoint'."
             (let ((undo-in-progress t))
               (while (and (consp ul) (eq (car ul) nil))
                 (setq ul (cdr ul)))
-              (primitive-undo arg ul)))
+              (primitive-undo (or arg 1) ul)))
           (new-pul (undo-fu--backport-undo--last-change-was-undo-p new-ul)))
         (message
           "Redo%s"



reply via email to

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