[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map e3fa3cc383 26/97: Fix compiler warning
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map e3fa3cc383 26/97: Fix compiler warning |
Date: |
Thu, 20 Jan 2022 07:59:11 -0500 (EST) |
branch: elpa/bind-map
commit e3fa3cc383bd7d331caa89bc914a2a296abb98f1
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Fix compiler warning
It didn't like using major-mode as an argument
---
bind-map.el | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/bind-map.el b/bind-map.el
index bcf39158fe..9be3ed5ff6 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -181,45 +181,45 @@ Declare a prefix command for MAP named COMMAND-NAME."
(put 'bind-map 'lisp-indent-function 'defun)
;;;###autoload
-(defmacro bind-map-for-major-mode (major-mode &rest args)
+(defmacro bind-map-for-major-mode (major-mode-sym &rest args)
"Short version of `bind-map' if you want to bind a map for a
-single major mode. MAJOR-MODE is the unquoted symbol representing
-a major mode. This macro makes the call
+single major mode. MAJOR-MODE-SYM is the unquoted symbol
+representing a major mode. This macro makes the call
-\(bind-map MAJOR-MODE-bm-map
- :major-modes \(MAJOR-MODE\)
+\(bind-map MAJOR-MODE-SYM-bm-map
+ :major-modes \(MAJOR-MODE-SYM\)
ARGS\)
where ARGS should include :keys or :evil-keys. The name of the
generated keymap is returned, which is always the name of the
major mode with -bm-map appended."
- (let ((map-name (intern (concat (symbol-name major-mode)
+ (let ((map-name (intern (concat (symbol-name major-mode-sym)
bind-map-default-map-suffix))))
`(progn
(bind-map ,map-name
- :major-modes (,major-mode)
+ :major-modes (,major-mode-sym)
,@args)
',map-name)))
(put 'bind-map-for-major-mode 'lisp-indent-function 'defun)
;;;###autoload
-(defmacro bind-map-for-minor-mode (minor-mode &rest args)
+(defmacro bind-map-for-minor-mode (minor-mode-sym &rest args)
"Short version of `bind-map' if you want to bind a map for a
-single minor mode. MINOR-MODE is the unquoted symbol representing
-a minor mode. This macro makes the call
+single minor mode. MINOR-MODE-SYM is the unquoted symbol
+representing a minor mode. This macro makes the call
-\(bind-map MINOR-MODE-bm-map
- :minor-modes \(MINOR-MODE\)
+\(bind-map MINOR-MODE-SYM-bm-map
+ :minor-modes \(MINOR-MODE-SYM\)
ARGS\)
where ARGS should include :keys or :evil-keys. The name of the
generated keymap is returned, which is always the name of the
minor mode with -bm-map appended."
- (let ((map-name (intern (concat (symbol-name minor-mode)
+ (let ((map-name (intern (concat (symbol-name minor-mode-sym)
bind-map-default-map-suffix))))
`(progn
(bind-map ,map-name
- :minor-modes (,minor-mode)
+ :minor-modes (,minor-mode-sym)
,@args)
',map-name)))
(put 'bind-map-for-minor-mode 'lisp-indent-function 'defun)
- [nongnu] elpa/bind-map bf4181e3a4 95/97: Add types to defcustoms, (continued)
- [nongnu] elpa/bind-map bf4181e3a4 95/97: Add types to defcustoms, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 510a24138d 97/97: Merge pull request #6 from skangas/bump-version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 21f972e52d 08/97: Clarify some parts of README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map d609a7d784 12/97: Add cl-lib requirement, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 27ed3304d2 19/97: Revert one of the changes in the previous commit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9f88b251f1 14/97: Fix typo, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 5077cb72cb 39/97: Add :override-minor-modes option for :keys, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 07eef581ef 15/97: Add URL, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ce4e8e7f64 21/97: Fix typos in docstrings, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map f46bf57d7f 52/97: Add major-mode test, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map e3fa3cc383 26/97: Fix compiler warning,
ELPA Syncer <=
- [nongnu] elpa/bind-map 4489504e47 29/97: Check evil-keys before calling evil-define-*, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map fb234332ff 32/97: Signal error if supplied map is not a keymap, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 3f6eba7b5b 56/97: Make sure active-var is bound before setting, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 99236303f6 84/97: Rename bind-map-for-modes-derived, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 96802ece2b 76/97: Increment version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 4ceb7deb3a 90/97: Remove messages from tests, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 3b5a27e429 47/97: Tweak docstrings, ELPA Syncer, 2022/01/20