[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape f8fe5c98d2 083/133: Add `evil-escape-inhibit-f
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/evil-escape f8fe5c98d2 083/133: Add `evil-escape-inhibit-functions` |
|
Date: |
Wed, 3 Jan 2024 21:59:55 -0500 (EST) |
branch: elpa/evil-escape
commit f8fe5c98d2c19d349a4beff99157d073839b6ba3
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Add `evil-escape-inhibit-functions`
Replace the previous `evil-escape-suppressed-predicates` function
---
README.md | 6 ++++++
evil-escape.el | 15 ++++++++++-----
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 793aae3eb2..773b012800 100644
--- a/README.md
+++ b/README.md
@@ -103,6 +103,12 @@ An inclusive list of major modes can defined with the
variable
`evil-escape-enable-only-for-major-modes`. When this list is non-nil
then evil-escape is enabled only for the major-modes in the list.
+### Inhibit evil-escape
+
+A list of zero arity functions can be defined with variable
+`evil-escape-inhibit-functions`, if any of these functions return
+non nil then evil-escape is inhibited.
+
### Assign a key binding directly
It is possible to bind `evil-escape' function directly`, for
diff --git a/evil-escape.el b/evil-escape.el
index 37b759ff2f..1e1ac1b9d4 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.08
+;; Version: 3.09
;; Package-Requires: ((emacs "24") (evil "1.0.9"))
;; URL: https://github.com/syl20bnr/evil-escape
@@ -66,6 +66,10 @@
;; non-nil then evil-escape is enabled only for the major-modes
;; in the list.
+;; A list of zero arity functions can be defined with the variable
+;; `evil-escape-inhibit-functions', if any of these functions return
+;; non nil then evil-escape is inhibited.
+
;; It is possible to bind `evil-escape' function directly, for
;; instance to execute evil-escape with `C-c C-g':
@@ -109,9 +113,9 @@ key first."
:type 'sexp
:group 'evil-escape)
-(defcustom evil-escape-suppressed-predicates nil
- "List of zero argument predicate functions. If any of these functions
-return nil, evil escape will be suppressed."
+(defcustom evil-escape-inhibit-functions nil
+ "List of zero argument predicate functions disabling evil-escape.
+ If any of these functions return non nil, evil escape will be inhibited."
:type 'sexp
:group 'evil-escape)
@@ -178,7 +182,8 @@ with a key sequence."
(or (equal (this-command-keys) (evil-escape--first-key))
(and evil-escape-unordered-key-sequence
(equal (this-command-keys) (evil-escape--second-key))))
- (every #'funcall evil-escape-suppressed-predicates)))
+ (not (reduce (lambda (x y) (or x y))
+ (mapcar 'funcall evil-escape-inhibit-functions)))))
(defun evil-escape--escape-normal-state ()
"Escape from normal state."
- [nongnu] elpa/evil-escape b205051996 056/133: More stable passthrough, (continued)
- [nongnu] elpa/evil-escape b205051996 056/133: More stable passthrough, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape afa9c9c321 067/133: Fixes #37 Capital r deletes a char inappropriately, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 67843e9dd4 041/133: Fix recursive `f` input during isearch in certain buffers, ELPA Syncer, 2024/01/03
- [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 <=
- [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, 2024/01/03
- [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