[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape 0da35398ed 058/133: Fix support for operators
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-escape 0da35398ed 058/133: Fix support for operators |
Date: |
Wed, 3 Jan 2024 21:59:52 -0500 (EST) |
branch: elpa/evil-escape
commit 0da35398edaddf4343dd87c301949218aaa7f2dc
Author: sbenner <sylvain.benner@ubisoft.com>
Commit: sbenner <sylvain.benner@ubisoft.com>
Fix support for operators
Fixes:
`vfa` works and highlights to the next a
`dfa` doesn't work; deletes character at point and then moves to the a
---
evil-escape.el | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/evil-escape.el b/evil-escape.el
index 763e4969f7..e0d7ead93c 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.24
+;; Version: 2.25
;; Package-Requires: ((emacs "24") (evil "1.0.9"))
;; URL: https://github.com/syl20bnr/evil-escape
@@ -172,18 +172,20 @@ with a key sequence."
(evil-define-motion ,(evil-escape--escape-function-symbol from)
(count)
,@evil-func-props
- (if (and (called-interactively-p 'interactive)
- (not (memq major-mode evil-escape-excluded-major-modes)))
- ;; called by the user
- (evil-escape--escape ,from
- ',map
- ,evil-escape-key-sequence
- ',command
- ',shadowed-func
- ',insert-func
- ',delete-func)
- ;; not called by the user (i.e. via a macro)
- (evil-escape--setup-passthrough ,from ',map ',shadowed-func)))))))
+ (if (eq 'operator evil-state)
+ (call-interactively ',shadowed-func)
+ (if (and (called-interactively-p 'interactive)
+ (not (memq major-mode evil-escape-excluded-major-modes)))
+ ;; called by the user
+ (evil-escape--escape ,from
+ ',map
+ ,evil-escape-key-sequence
+ ',command
+ ',shadowed-func
+ ',insert-func
+ ',delete-func)
+ ;; not called by the user (i.e. via a macro)
+ (evil-escape--setup-passthrough ,from ',map
',shadowed-func))))))))
(defun evil-escape--define-keys ()
"Set the key bindings to escape _everything!_"
- [nongnu] branch elpa/evil-escape created (now bdb1e69971), ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape a8fb352edd 009/133: Add melpa badge to readme, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fe0c3318d8 005/133: Remove duplicate var declaration, and add trailing comment line, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b09500cc4e 002/133: Update readme, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 8af69d73f8 020/133: Fixes #10 deleting with `df)` does not include `)`, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 9dd9cccf32 027/133: Add pass through functionality, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 0da35398ed 058/133: Fix support for operators,
ELPA Syncer <=
- [nongnu] elpa/evil-escape 0346740ff1 031/133: Correctly handle the evil function properties, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 37c227e4df 018/133: Version 1.5.1, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 05709479ed 010/133: Add badge for melpa stable, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1fe3759ab4 014/133: Fix 'commandp is nil` when search for `f` in isearch, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 5da641b6e6 019/133: Quit ert buffers, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fe21e8f256 004/133: Fix error in readme, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 07c6c1b4da 007/133: Fixes #2 Symbol's value as variable is void: isearch-abort, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1d09324c72 011/133: Fix byte-compilation and defcustom, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 7aa2bb2155 024/133: Suppress key-chord dependency (v2.0), ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 2e7bf1e62e 021/133: Support undo-tree, ELPA Syncer, 2024/01/03