[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)
- [nongnu] elpa/undo-fu 9cc8c64f16 12/82: Merge branch 'patch-1' into 'master', (continued)
- [nongnu] elpa/undo-fu 9cc8c64f16 12/82: Merge branch 'patch-1' into 'master', ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 6f876014dc 14/82: Cleanup: complete doc string for message override macro, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 769789d742 17/82: Add autoload cookie, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu c5bb7b0402 22/82: Evil Mode: mark undo commands not to repeat, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu fd2e9952f9 31/82: Merge branch 'compiler-warnings' into 'master', ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu c2be4ae43e 41/82: Cleanup: blank lines, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu d03de12298 44/82: Cleanup: use the term 'checkpoint' instead of 'end-point', ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 2cba1903f3 45/82: Cleanup: improve 'undo-fu-disable-checkpoint' messages, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 32674fc7b0 47/82: Release 0.3, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu c0806c1903 60/82: Update changelog, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu aae7ec9784 49/82: Cleanup: use mapc for multiple calls to evil-declare-not-repeat,
ELPA Syncer <=
- [nongnu] elpa/undo-fu f9c39c248c 81/82: readme: update to use evil-modes undo-fu support, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 97e7f4f6e0 82/82: Change URL to codeberg, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu fa245fd3d0 01/82: Initial functionality., ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 8daa0b5c46 05/82: Correct docstrings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 792d27b8a1 16/82: Lower version requirement to 24.3, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 1ecbe826ae 20/82: Fix undo-fu-only-redo-all counting incorrectly, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 0c34b6747e 52/82: Cleanup: replace cl-letf with macro that temporarily sets advice, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 49cca61343 56/82: Fix unconstrained redo trapping the user at the end of the chain, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 25e25ec4df 48/82: Cleanup: typos, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu f4db4c9b98 62/82: Update readme, ELPA Syncer, 2022/07/07