[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 5c313522cf 128/225: Don't call deprecated fun
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 5c313522cf 128/225: Don't call deprecated functions |
Date: |
Wed, 12 Jan 2022 08:59:02 -0500 (EST) |
branch: elpa/evil-goggles
commit 5c313522cf1b0f4027f359906dbb62c0cf07a036
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Don't call deprecated functions
---
evil-goggles.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index d110c304b8..ec4151dfff 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -145,7 +145,7 @@ background of 'evil-goggles-default-face, then 'region."
Used to prevent displaying multiple overlays for the same command. For
example, when the user executes `evil-delete', the overlay should be
displayed, but when `evil-delete' calls internally `evil-yank', the
-overlay must not be displayed.")
+overlay must not be re-displayed.")
(defun evil-goggles--show-p (beg end)
"Return t if the overlay should be displayed in region BEG to END."
@@ -439,7 +439,7 @@ N and LIST are the arguments of the original function."
(pcase undo-item
(`(text-added ,beg ,end)
(when (evil-goggles--show-p beg end)
- (evil-goggles--show beg end 'evil-goggles-undo-redo-remove-face))))
+ (evil-goggles--with-before-goggles2 beg end
'evil-goggles-undo-redo-remove-face evil-goggles-undo-redo-remove-duration))))
;; call the undo/redo function
(funcall orig-fun n list)
@@ -448,10 +448,10 @@ N and LIST are the arguments of the original function."
(pcase undo-item
(`(text-removed ,beg ,end)
(when (evil-goggles--show-p beg end)
- (evil-goggles--show beg end 'evil-goggles-undo-redo-add-face)))
+ (evil-goggles--with-before-goggles2 beg end
'evil-goggles-undo-redo-add-face evil-goggles-undo-redo-add-duration)))
(`(text-changed ,beg ,end)
(when (evil-goggles--show-p beg end)
- (evil-goggles--show beg end 'evil-goggles-undo-redo-change-face))))))
+ (evil-goggles--with-before-goggles2 beg end
'evil-goggles-undo-redo-change-face evil-goggles-undo-redo-change-duration))))))
(defun evil-goggles--get-undo-item (list)
"Process LIST.
@@ -593,7 +593,7 @@ Argument YANK-HANDLER is the yank hanler."
(beg-corrected (if is-beg-at-eol (1+ beg) beg)))
(if (evil-goggles--evil-paste-block-p register yank-handler)
(evil-goggles--show-block-overlay beg-corrected end
'evil-goggles-paste-face evil-goggles-paste-duration)
- (evil-goggles--show-overlay beg-corrected end 'evil-goggles-paste-face
(or evil-goggles-paste-duration evil-goggles-duration))))))
+ (evil-goggles--with-before-goggles2 beg-corrected end
'evil-goggles-paste-face evil-goggles-paste-duration)))))
(defun evil-goggles--evil-paste-block-p (register yank-handler)
"Return t if the paste was a vertical block.
- [nongnu] elpa/evil-goggles 904fc39728 072/225: Add doc for evil-goggles-use-diff-faces, (continued)
- [nongnu] elpa/evil-goggles 904fc39728 072/225: Add doc for evil-goggles-use-diff-faces, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles e65aa39749 083/225: Add support for block paste, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 685e3714a5 090/225: Handle a specific u/redo case when the list has 2 connecting items, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 1e9ebe5e4c 095/225: Extend support for u/redo after some text is changed., ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 221a5ed8ea 098/225: Add support for Emacs 24 by not relying on funcall-interactively, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles aaa93841f9 103/225: Update evil-goggles.el, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f79c03ba62 108/225: Experimental: add support for pulsing, new option`evil-goggles-pulse', ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 9fa3d448ca 112/225: Update "Recent Significant Changes" section in README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 219d93e125 118/225: Add support for displaying the hint after the operation, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles c5c49d7965 127/225: Use different duration for before/after hints, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5c313522cf 128/225: Don't call deprecated functions,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles 03cb67fc4c 125/225: Remove duplicated line, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 70ed667698 131/225: Fix compile warnings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ea0102bcf5 133/225: Use "post" hint when commenting, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3f6dd85657 151/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5bd77428e3 142/225: Cleanup internal API for showing a vertical hint once, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles c515477fd4 160/225: Clarify docs for evil-goggles-async-duration and evil-goggles-blocking-duration, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 674a1be5aa 188/225: Merge branch 'hint-only-when-command-is-interactive'. Close #18, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 946598059f 204/225: Fix compilation warnings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles b756edf31e 182/225: Show hint on u/redo after inserting text with "O", ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 6d2ce52faa 200/225: Add hint for `m`, ELPA Syncer, 2022/01/12