[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 04b93b8564 157/225: Use alternative pulse dur
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 04b93b8564 157/225: Use alternative pulse duration calculation |
Date: |
Wed, 12 Jan 2022 08:59:04 -0500 (EST) |
branch: elpa/evil-goggles
commit 04b93b8564177c9da6366a6db3c6daf8e03e2bcb
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Use alternative pulse duration calculation
With this change the number of iterations is kept the same (always 10)
and the number of iterations are tweaked instead. This works better
since pulse.el doesn't have (or use) enough color shades and runs out
of shades by the 10th iteration.
---
evil-goggles.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index 3b22f2958e..40f0dff1bc 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -100,8 +100,8 @@ can't work with input such as (backgound . \"red\")."
This function returns immediately, it doesn't wait for the pulse
animation to end."
- (let* ((pulse-delay 0.03)
- (pulse-iterations (round dur pulse-delay)))
+ (let* ((pulse-iterations 10)
+ (pulse-delay (/ (float dur) pulse-iterations) ))
(ignore pulse-iterations) ;; silence compile warning Unused lexical
variable
(set-face-attribute 'evil-goggles--pulse-face nil :background background)
(pulse-momentary-highlight-overlay ov 'evil-goggles--pulse-face)))
- [nongnu] elpa/evil-goggles fec8dfd7b5 088/225: Simplify undo/redo checks, (continued)
- [nongnu] elpa/evil-goggles fec8dfd7b5 088/225: Simplify undo/redo checks, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles fd85719817 089/225: Improve doc strings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 0585f4d657 097/225: Try to avoid Travis seg-faults by running emacs in batch mode, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 142e0a9f2b 105/225: Remove unused option, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ee7fafb858 107/225: Remove debugs, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5404dcfaf8 106/225: Don't quote inherited faces so face-background works, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 13fd7e348c 110/225: Disable pulsing by default, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 49c1318098 113/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 6bf281c788 117/225: Simplify macro, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 9f4a9dec5a 122/225: Fix comment, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 04b93b8564 157/225: Use alternative pulse duration calculation,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles 79a25e4da1 163/225: make compile: use dolist instead of mapc, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 79a2f620bf 190/225: Implement yank, delete, indent & change with a :before advice, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 057378b54f 203/225: Add paste hint, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 0a96a8fb43 212/225: Show paste hint after `C-n' and `C-p', ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ea5ab4012a 217/225: Fix parentheses nesting, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 61d3c1e3d9 222/225: Switch to makel.mk, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 08a22058fd 223/225: Remove evil-tests.el workaround, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 82c14bc058 136/225: Don't block when surrounding, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 7f417d8eff 140/225: Improve docs, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f482c9762d 143/225: Remove unnecessary function, ELPA Syncer, 2022/01/12