[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map 2fafc10f7d 45/97: Rename a var and a function and
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map 2fafc10f7d 45/97: Rename a var and a function and tweak a docstring |
Date: |
Thu, 20 Jan 2022 07:59:18 -0500 (EST) |
branch: elpa/bind-map
commit 2fafc10f7d7d3110d14bc7a32f02cb3ffd37153f
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Rename a var and a function and tweak a docstring
bind-map-local-bindings -> bind-map-evil-local-bindings
bind-map-local-mode-hook -> bind-map-evil-local-mode-hook
The old var is aliased to not break currently compiled code
---
bind-map.el | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/bind-map.el b/bind-map.el
index e64b45eb18..588ce8add8 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -116,9 +116,12 @@
`bind-map-for-minor-mode'."
:group 'bind-map)
-(defvar bind-map-local-bindings '()
+(defvar bind-map-evil-local-bindings '()
"Each element of this list takes the form (STATE KEY DEF) and
corresponds to a binding for an evil local state map.")
+(defvaralias 'bind-map-local-bindings 'bind-map-evil-local-bindings)
+(make-obsolete-variable 'bind-map-local-bindings
+ 'bind-map-evil-local-bindings "2015-12-2")
;;;###autoload
(defmacro bind-map (map &rest args)
@@ -157,7 +160,7 @@ use `bind-map-default-evil-states'.
:evil-use-local BOOL
This places all evil bindings in the local state maps for
-evil (as well as the global ones). These maps have high
+evil (in addition to the global ones). These maps have high
precedence and will mask most other evil bindings. If
either :major-modes or :minor-modes is specified, this setting
has no effect.
@@ -239,7 +242,8 @@ Declare a prefix command for MAP named COMMAND-NAME."
(dolist (key (list ,@evil-keys))
(dolist (state ',evil-states)
(when ,evil-use-local
- (push (list state (kbd key) ',prefix-cmd)
bind-map-local-bindings))
+ (push (list state (kbd key) ',prefix-cmd)
+ bind-map-evil-local-bindings))
(evil-global-set-key state (kbd key) ',prefix-cmd)))))))
(put 'bind-map 'lisp-indent-function 'defun)
@@ -287,12 +291,12 @@ concatenated with `bind-map-default-map-suffix'."
',map-name)))
(put 'bind-map-for-minor-mode 'lisp-indent-function 'defun)
-(defun bind-map-local-mode-hook ()
- (dolist (entry bind-map-local-bindings)
+(defun bind-map-evil-local-mode-hook ()
+ (dolist (entry bind-map-evil-local-bindings)
(let ((map (intern (format "evil-%s-state-local-map" (car entry)))))
(when (and (boundp map) (keymapp (symbol-value map)))
(define-key (symbol-value map) (cadr entry) (caddr entry))))))
-(add-hook 'evil-local-mode-hook 'bind-map-local-mode-hook)
+(add-hook 'evil-local-mode-hook 'bind-map-evil-local-mode-hook)
;;;###autoload
(defun bind-map-set-keys (map key def &rest bindings)
- [nongnu] elpa/bind-map 4cf9dfd1cb 81/97: Fix declare form, (continued)
- [nongnu] elpa/bind-map 4cf9dfd1cb 81/97: Fix declare form, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ddce68ed1d 53/97: Move evil-local-mode hook next to var, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 2a5fcbd947 73/97: Revert "Fix incorrect check of override mode in local hook", ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map f4fad049d0 70/97: Bump to version 1.0, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9599acb5ab 35/97: Silence warning about defvar-local, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 662dea907c 51/97: Suppress make-local warnings from compiler, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9a676378fe 54/97: Simplify major-mode activation, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map e239bbdaef 44/97: Always use global evil maps, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map af26966c9a 57/97: Make macro expansion prettier, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 393879d260 58/97: Satisfy compiler, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 2fafc10f7d 45/97: Rename a var and a function and tweak a docstring,
ELPA Syncer <=
- [nongnu] elpa/bind-map e94572b50b 74/97: Increment version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 00b7778826 68/97: Fix minor-mode tests, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9ae3e9b113 72/97: Increment version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 40ed95d4d5 80/97: Add bindings keyword, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6f84c0254f 78/97: Increment version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map c335674139 60/97: Add files for travis, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 89747f7240 75/97: Fix evil-local-mode-hook logic, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 76b8e2ab6c 85/97: Add tests for inheritance, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6ba28e31aa 83/97: Revert change to prefix-cmd handling, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map fe76f92777 91/97: Add default keys and default evil-keys, ELPA Syncer, 2022/01/20