[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-surround 67a82903ec 009/175: Use text object keymaps
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-surround 67a82903ec 009/175: Use text object keymaps |
Date: |
Mon, 9 Oct 2023 13:00:59 -0400 (EDT) |
branch: elpa/evil-surround
commit 67a82903ec75e55d2ef837ff535dfe275a098f28
Author: Vegard Øye <vegard_oye@hotmail.com>
Commit: Vegard Øye <vegard_oye@hotmail.com>
Use text object keymaps
Look up text objects in `evil-outer-text-objects-map' and
`evil-inner-text-objects-map' instead of relying on a hard-coded
"a"/"i" prefix.
---
surround.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/surround.el b/surround.el
index 268fd7e8cb..8fe9d463c3 100644
--- a/surround.el
+++ b/surround.el
@@ -96,8 +96,7 @@ This is a cons cell (LEFT . RIGHT), both strings."
"Return outer overlay for the delimited range represented by CHAR.
This overlay includes the delimiters.
See also `surround-inner-overlay'."
- (let ((outer (lookup-key evil-motion-state-map
- (format "a%c" char))))
+ (let ((outer (lookup-key evil-outer-text-objects-map (string char))))
(when (functionp outer)
(setq outer (funcall outer))
(when (evil-range-p outer)
@@ -121,8 +120,7 @@ See also `surround-inner-overlay'."
"Return inner overlay for the delimited range represented by CHAR.
This overlay excludes the delimiters.
See also `surround-outer-overlay'."
- (let ((inner (lookup-key evil-motion-state-map
- (format "i%c" char))))
+ (let ((inner (lookup-key evil-inner-text-objects-map (string char))))
(when (functionp inner)
(setq inner (funcall inner))
(when (evil-range-p inner)
- [nongnu] branch elpa/evil-surround created (now bd98f7f549), ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround b2d9aebfe9 007/175: fixes whitespace + 1 munching issue when deleting surrounding brackets + space, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround fc676618e1 013/175: Make surround-pairs-alist buffer local., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround a936638bec 002/175: Began port. Surround region working. Change surround/delete surround not., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 205c650d7f 008/175: Refactor surround-pair for readability, flexibility. Subtle behavior change, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 67a82903ec 009/175: Use text object keymaps,
ELPA Syncer <=
- [nongnu] elpa/evil-surround e25f5f9c00 015/175: Add note about sentence behavior with link to issue., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround ac3f8ca8b0 014/175: Add readme., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 0a6741684b 024/175: Merge pull request #13 from milkypostman/master, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 92eee31db7 028/175: Fix link to Evil, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround f33d940264 036/175: Rename surround.el to evil-surround.el, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround a4a04c6f01 075/175: Merge pull request #74 from lislon/surround-repeat, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 16c534b173 089/175: Unset execute permission for files, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround eda6b0d6ca 079/175: Merge pull request #78 from vyp/#55, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 50c10ab484 025/175: add autoloads to interactive functions for use in emacs proper, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 2de26062dd 031/175: Fix doc for surround delete operator, ELPA Syncer, 2023/10/09