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

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

[nongnu] elpa/undo-fu 92270009c0 07/10: Cleanup: replace 'if' with 'cond


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu 92270009c0 07/10: Cleanup: replace 'if' with 'cond'
Date: Mon, 9 Jan 2023 18:00:42 -0500 (EST)

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

    Cleanup: replace 'if' with 'cond'
---
 undo-fu.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/undo-fu.el b/undo-fu.el
index 1696fb8c32..74e95adb0d 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -96,9 +96,11 @@ Instead, explicitly call `undo-fu-disable-checkpoint'."
           (new-pul (undo-fu--backport-undo--last-change-was-undo-p new-ul)))
         (message
           "Redo%s"
-          (if undo-in-region
-            " in region"
-            ""))
+          (cond
+            (undo-in-region
+              " in region")
+            (t
+              "")))
         (setq this-command 'undo)
         (setq pending-undo-list new-pul)
         (setq buffer-undo-list new-ul)))))



reply via email to

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