[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape bb6f6c254a 069/133: Fix isearch support
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-escape bb6f6c254a 069/133: Fix isearch support |
Date: |
Wed, 3 Jan 2024 21:59:53 -0500 (EST) |
branch: elpa/evil-escape
commit bb6f6c254a149d38efb974f263077c8cd137b38a
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Fix isearch support
---
evil-escape.el | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/evil-escape.el b/evil-escape.el
index 27cfdc7651..7ae65baacd 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -5,7 +5,7 @@
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; Keywords: convenience editing evil
;; Created: 22 Oct 2014
-;; Version: 3.0
+;; Version: 3.01
;; Package-Requires: ((emacs "24") (evil "1.0.9"))
;; URL: https://github.com/syl20bnr/evil-escape
@@ -117,6 +117,7 @@ with a key sequence."
(defun evil-escape-p ()
"Return non-nil if evil-escape should run."
(and (or (window-minibuffer-p)
+ (bound-and-true-p isearch-mode)
(and (fboundp 'helm-alive-p) (helm-alive-p))
(and (not (eq evil-state 'normal))
(not (eq evil-state 'motion))))
@@ -143,7 +144,7 @@ with a key sequence."
(cond
((and (fboundp 'helm-alive-p) (helm-alive-p))
(abort-recursive-edit))
- ((eq major-mode 'isearch-mode) (isearch-abort))
+ ((bound-and-true-p isearch-mode) (isearch-abort))
((window-minibuffer-p) (abort-recursive-edit))))
(defun evil-escape--escape-motion-state ()
@@ -182,7 +183,7 @@ with a key sequence."
"Default insert function."
(when (not buffer-read-only) (self-insert-command 1)))
-(defun evil-escape--default-delete-func ()
+(defun evil-escape--delete-func ()
"Delete char in current buffer if not read only."
(when (not buffer-read-only) (delete-char -1)))
@@ -190,9 +191,10 @@ with a key sequence."
"Insert the first key of the sequence."
(pcase evil-state
(`insert (pcase major-mode
- (`isearch-mode (isearch-printing-char))
(`term-mode (call-interactively 'term-send-raw))
- (_ (evil-escape--insert-func))) t)
+ (_ (cond
+ ((bound-and-true-p isearch-mode) (isearch-printing-char))
+ (t (evil-escape--insert-func))))) t)
(`normal
(when (window-minibuffer-p) (evil-escape--insert-func) t))
(`iedit-insert (evil-escape--insert-func) t)))
@@ -201,13 +203,14 @@ with a key sequence."
"Revert the insertion of the first key of the sequence."
(pcase evil-state
(`insert (pcase major-mode
- (`isearch-mode (isearch-delete-char))
(`term-mode (call-interactively 'term-send-backspace))
(`deft-mode (call-interactively 'deft-filter-increment))
- (_ (evil-escape--default-delete-func))))
+ (_ (cond
+ ((bound-and-true-p isearch-mode) (isearch-delete-char))
+ (t (evil-escape--delete-func))))))
(`normal
- (when (minibuffer-window-active-p (evil-escape--default-delete-func))))
- (`iedit-insert (evil-escape--default-delete-func))))
+ (when (minibuffer-window-active-p (evil-escape--delete-func))))
+ (`iedit-insert (evil-escape--delete-func))))
(defun evil-escape--escape-with-q ()
"Send `q' key press event to exit from a buffer."
- [nongnu] elpa/evil-escape e78ffcdbeb 036/133: Explicitly disable any running transient map, (continued)
- [nongnu] elpa/evil-escape e78ffcdbeb 036/133: Explicitly disable any running transient map, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape e556c7a6b6 057/133: Fix line highlight flicker on escape, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 05d9e5fc80 052/133: Don't break deft-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 457386c7bc 043/133: Generalize passthrough, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6c6379c19b 065/133: Update README for 3.0, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bc054dbe1e 059/133: Add documentation to generated wrapper functions, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1488a2c9c3 037/133: When replaying macro, pass shadow func, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape f8fe5c98d2 083/133: Add `evil-escape-inhibit-functions`, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b0d033794c 089/133: Fix typo in docstring of evil-escape-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1c4b0efc06 100/133: Allow evil-escape in normal state if it makes sense, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bb6f6c254a 069/133: Fix isearch support,
ELPA Syncer <=
- [nongnu] elpa/evil-escape bf41c9e797 068/133: Fix typo in docstring (thanks to person808), ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6790f87d87 081/133: Fix unexpected escape when unordered-key-sequence is non nil, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 5c5b1a655c 076/133: Add new defcustom evil-escape-enable-only-for-major-modes, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 17023f4ce4 072/133: Correctly revert modified status of the buffer, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fbf7e6ee35 113/133: Add support for evil-multiedit, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6a9d60c733 087/133: Update README TOC, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fccebfe601 098/133: Add support for emoji-cheat-sheet-plus-buffer, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 09e0622e16 109/133: Add support for image-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape af1a6eb532 110/133: Fix display flickering when using 'global-hl-line-mode', ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 9328f25199 122/133: Fix docstrings, ELPA Syncer, 2024/01/03