[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 546fdafd8f 144/225: Add comment for internal
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 546fdafd8f 144/225: Add comment for internal APIs |
Date: |
Wed, 12 Jan 2022 08:59:03 -0500 (EST) |
branch: elpa/evil-goggles
commit 546fdafd8fe6b209f03f79023427552aa825241d
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Add comment for internal APIs
---
evil-goggles.el | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index 71ac69dbaa..832714d9f1 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -34,6 +34,15 @@
;;
;; (evil-goggles-mode)
;;
+;;; Internal APIs:
+;;
+;; These functions should be used for displaying hints:
+;;
+;; - evil-goggles--with-async-hint
+;; - evil-goggles--with-blocking-hint
+;; - evil-goggles--with-disabled-hint
+;; - evil-goggles--show-hint
+;;
;;; Code:
(require 'evil)
@@ -407,7 +416,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--with-blocking-hint beg end
'evil-goggles-undo-redo-remove-face evil-goggles-undo-redo-remove-duration)))
+ (evil-goggles--show-hint beg end 'evil-goggles-undo-redo-remove-face
evil-goggles-undo-redo-remove-duration)))
;; call the undo/redo function
(funcall orig-fun n list)
@@ -415,9 +424,9 @@ N and LIST are the arguments of the original function."
;; show hint on the text which will be added after undo/redo addes it
(pcase undo-item
(`(text-removed ,beg ,end)
- (evil-goggles--with-blocking-hint beg end
'evil-goggles-undo-redo-add-face evil-goggles-undo-redo-add-duration))
+ (evil-goggles--show-hint beg end 'evil-goggles-undo-redo-add-face
evil-goggles-undo-redo-add-duration))
(`(text-changed ,beg ,end)
- (evil-goggles--with-blocking-hint beg end
'evil-goggles-undo-redo-change-face evil-goggles-undo-redo-change-duration)))))
+ (evil-goggles--show-hint beg end 'evil-goggles-undo-redo-change-face
evil-goggles-undo-redo-change-duration)))))
(defun evil-goggles--get-undo-item (list)
"Process LIST.
- [nongnu] elpa/evil-goggles 0a96a8fb43 212/225: Show paste hint after `C-n' and `C-p', (continued)
- [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
- [nongnu] elpa/evil-goggles 87949d4c7e 147/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 4645be7ac2 150/225: Fix block hint using only the bg of the face, ignoring the fg, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 691bd2ef28 148/225: Make comments compatible with outline, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 546fdafd8f 144/225: Add comment for internal APIs,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles be3acc9142 152/225: Merge branch 'per-action-duration', ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 787b8dcabd 159/225: Fix macro indentation, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 52e77e9a3a 146/225: Simplify customization: remove duration options for each advised command, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 9a1ddbda3e 164/225: Add helper function on inherit from diff-refine-* faces, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles b611a140a2 162/225: Highlight the whole line when pasting a whole line, not just the text, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 690dd7aba3 165/225: Pulse only if the face defines a background, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d1683b3353 167/225: Pulse if the face inherits a background, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d4b0ea224d 169/225: Add tests covering the decision whether to pulse or not, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles b620c7512c 170/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 2670fdf664 172/225: Revert `evaporate` overlay property, ELPA Syncer, 2022/01/12