[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape 7fd1902fac 033/133: Fix regression in visual b
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-escape 7fd1902fac 033/133: Fix regression in visual block |
Date: |
Wed, 3 Jan 2024 21:59:50 -0500 (EST) |
branch: elpa/evil-escape
commit 7fd1902facf934d929ce2de356188b80a815af4d
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Fix regression in visual block
Due to using a lambda which disturb call-interactively-p
---
evil-escape.el | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/evil-escape.el b/evil-escape.el
index 8b71a460c3..404a23825b 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: 2.07
+;; Version: 2.08
;; Package-Requires: ((emacs "24") (evil "1.0.9"))
;; URL: https://github.com/syl20bnr/evil-escape
@@ -155,13 +155,9 @@ with a key sequence."
(lookup-key evil-motion-state-map (evil-escape--first-key)))
;; evil states
;; insert state
- (let ((insert-func (lambda (key) (interactive)
- (cond ((eq 'term-mode major-mode)
- (call-interactively 'term-send-raw))
- (t (evil-escape--default-insert-func key))))))
- (eval `(evil-escape-define-escape "insert-state" evil-insert-state-map
evil-normal-state
- :insert-func ,insert-func
- :delete-func
evil-escape--default-delete-func)))
+ (eval `(evil-escape-define-escape "insert-state" evil-insert-state-map
evil-normal-state
+ :insert-func
evil-escape--insert-state-insert-func
+ :delete-func
evil-escape--default-delete-func))
;; emacs state
(let ((exit-func (lambda () (interactive)
(cond ((string-match "magit" (symbol-name major-mode))
@@ -242,6 +238,13 @@ with a key sequence."
"Insert KEY in current buffer if not read only."
(when (not buffer-read-only) (insert key)))
+(defun evil-escape--insert-state-insert-func (key)
+ "Take care of term-mode."
+ (interactive)
+ (cond ((eq 'term-mode major-mode)
+ (call-interactively 'term-send-raw))
+ (t (evil-escape--default-insert-func key))))
+
(defun evil-escape--isearch-insert-func (key)
"Insert KEY in current buffer if not read only."
(isearch-printing-char))
- [nongnu] elpa/evil-escape 7067e1b84d 034/133: Fix escape sequence for evil-lisp-state, (continued)
- [nongnu] elpa/evil-escape 7067e1b84d 034/133: Fix escape sequence for evil-lisp-state, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape c410d7e977 044/133: Fixes #18 Leaves first key in multi-term, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape f59790846c 062/133: Add evil-escape-inhibit variable, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 0e1996ec55 060/133: Fix Symbol's value as variable is void: hl-line-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6634eff564 032/133: Fix `fd` not working in some case when in `emacs state`, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 526de681d3 047/133: Fix multiple `isearch-abort`, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 64c65a4e96 053/133: Remove company support, bump version to 2.21, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 0326241bcd 048/133: Bump to version 2.18, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1271af99ac 064/133: Rewrite of evil-escape (v3.0), ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape e297938f32 050/133: Remove message when the mode is enabled, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 7fd1902fac 033/133: Fix regression in visual block,
ELPA Syncer <=
- [nongnu] elpa/evil-escape 0e95e20437 040/133: Prevent infinite recursion if evil-escape.el is evaluated twice, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 7600904462 045/133: Fix double insert of first key in some cases, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 32a6c6c31e 102/133: Add support for compilation buffers, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 739871a837 124/133: Enforce use of spaces for indentation, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape f4e9116bfb 117/133: Add a separate var for controlling mode lighter, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape c3592a774e 123/133: Add minor introduction to the library commentary., ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape efe9a3a3d1 071/133: Simplify even more evil-escape-pre-command-hook, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape c2946d8f4f 120/133: Use lexical-binding, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape a7714e61b2 112/133: set `this-original-command`, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 02aee7f613 079/133: New variable evil-escape-unordered-key-sequence, ELPA Syncer, 2024/01/03