[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 5db6848df8 154/225: Undo adds should show a b
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 5db6848df8 154/225: Undo adds should show a blocking hint |
Date: |
Wed, 12 Jan 2022 08:59:04 -0500 (EST) |
branch: elpa/evil-goggles
commit 5db6848df8203ee4d00f08e678d6fc4f752b2793
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Undo adds should show a blocking hint
---
evil-goggles.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index 3e1014cc19..3b22f2958e 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -230,12 +230,15 @@ will be adjusted if BODY modifies the text in it."
(sit-for ,dur))
(delete-overlay ov))))
-(defun evil-goggles--show-hint (beg end face &optional force-block)
+(defun evil-goggles--show-hint (beg end face &optional force-vertical-hint
blocking)
"Show hint from BEG to END with face FACE for DUR sec.
-The hint will be a vertical block if FORCE-BLOCK is non-nil."
- (if force-block
- (let ((evil-goggles--force-block force-block))
+The hint will be a vertical block if FORCE-VERTICAL-HINT is non-nil.
+If BLOCKING is non-nil, the hint will be treated like a blocking
+hint, i.e. it will be displayed for `evil-goggles-blocking-duration'
+rather than `evil-goggles-async-duration'"
+ (if (or blocking force-vertical-hint)
+ (let ((evil-goggles--force-block blocking))
;; use blocking hint for blocks, async hint doesn't support blocks
(evil-goggles--with-blocking-hint beg end face))
(evil-goggles--with-async-hint beg end face)))
@@ -409,7 +412,7 @@ N and LIST are the arguments of the original function."
;; show hint on the text which will be removed before undo/redo removes it
(pcase undo-item
(`(text-added ,beg ,end)
- (evil-goggles--show-hint beg end 'evil-goggles-undo-redo-remove-face)))
+ (evil-goggles--show-hint beg end 'evil-goggles-undo-redo-remove-face
nil t)))
;; call the undo/redo function
(funcall orig-fun n list)
- [nongnu] elpa/evil-goggles 856cb548c3 123/225: Define per-action durations, (continued)
- [nongnu] elpa/evil-goggles 856cb548c3 123/225: Define per-action durations, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 8b3889332c 126/225: Use new funcs/macros which support duration per operation, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 90da624f36 115/225: Improve docs, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 92d614e731 119/225: Display the hint after indenting and "replacing with register" #7, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles c7e3f6ff17 116/225: Remove incorrectly commited snippet, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 4777cd7849 121/225: Show hint after indenting, not before #7, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 287491d0a0 124/225: Add WIP support for per-action durations, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f5e98355f4 135/225: Use one function for `evil-paste-after` and `evil-paste-before` advices, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d705bef9d4 134/225: Fix CI failing, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f6519214b8 149/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5db6848df8 154/225: Undo adds should show a blocking hint,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles 440324a1ed 161/225: Silence compilation warning for unused lexical variable, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3dce5937ac 166/225: Pulsing is no longer experimental, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 4d4465fd59 168/225: Improve logic deciding whether to pulse or not, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3b874c7630 178/225: Set mark advice: show hint on whitespace-only lines, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ca18c944ed 179/225: Show hint on start/stop record macro, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 943382b367 194/225: Add hints for surround, commentary, nerd commenter, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 04d66ddc20 201/225: Add hint for `q`, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles b896ca797c 211/225: Add support for evil-org. Close #21, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 2186289a01 213/225: evil-goggles--show-p: no need to check evil-inhibit-operator-value, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 42456816de 015/225: Use macros to preserve "interactivity", ELPA Syncer, 2022/01/12