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

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

[nongnu] elpa/undo-fu aae7ec9784 49/82: Cleanup: use mapc for multiple c


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu aae7ec9784 49/82: Cleanup: use mapc for multiple calls to evil-declare-not-repeat
Date: Thu, 7 Jul 2022 12:04:53 -0400 (EDT)

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

    Cleanup: use mapc for multiple calls to evil-declare-not-repeat
---
 undo-fu.el | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/undo-fu.el b/undo-fu.el
index 2e1f27e402..283f529bfb 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -404,15 +404,23 @@ Optional argument ARG the number of steps to undo."
 ;; Evil Mode (setup if in use)
 ;;
 ;; Don't let these commands repeat.
+;;
+;; Notes:
+;; - Use `with-eval-after-load' once Emacs version 24.4 is the minimum 
supported version.
+;; - Package lint complains about using this command,
+;;   however it's needed to avoid issues with `evil-mode'.
 (declare-function evil-declare-not-repeat "ext:evil-common")
 (eval-after-load
   'evil
   '
   (progn
-    (evil-declare-not-repeat 'undo-fu-disable-checkpoint)
-    (evil-declare-not-repeat 'undo-fu-only-undo)
-    (evil-declare-not-repeat 'undo-fu-only-redo)
-    (evil-declare-not-repeat 'undo-fu-only-redo-all)))
+    (mapc
+      #'evil-declare-not-repeat
+      (list
+        'undo-fu-disable-checkpoint
+        'undo-fu-only-redo
+        'undo-fu-only-redo-all
+        'undo-fu-only-undo))))
 
 (provide 'undo-fu)
 



reply via email to

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