[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map 26a3b5571d 88/97: Make return val consistent in b
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map 26a3b5571d 88/97: Make return val consistent in bind-map |
Date: |
Thu, 20 Jan 2022 07:59:29 -0500 (EST) |
branch: elpa/bind-map
commit 26a3b5571de9b3ab1fbcf5a9aca921e4c74f5dc2
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Make return val consistent in bind-map
Used to simplify a couple of macro calls
---
bind-map.el | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/bind-map.el b/bind-map.el
index b92f5a9799..2532ed0aa3 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -366,7 +366,9 @@ mode maps. Set up by bind-map.el." map))
(when bindings
`((bind-map-set-keys ,map
- ,@bindings))))))
+ ,@bindings)))
+
+ `(',map))))
(put 'bind-map 'lisp-indent-function 'defun)
(defun bind-map--get-prop (keyword args parent-args)
@@ -419,11 +421,9 @@ generated keymap is returned, which is MAJOR-MODE-SYM
concatenated
with `bind-map-default-map-suffix'."
(let ((map-name (intern (concat (symbol-name major-mode-sym)
bind-map-default-map-suffix))))
- `(progn
- (bind-map ,map-name
- :major-modes (,major-mode-sym)
- ,@args)
- ',map-name)))
+ `(bind-map ,map-name
+ :major-modes (,major-mode-sym)
+ ,@args)))
(put 'bind-map-for-major-mode 'lisp-indent-function 'defun)
;;;###autoload
@@ -441,11 +441,9 @@ generated keymap is returned, which is MINOR-MODE-SYM
concatenated with `bind-map-default-map-suffix'."
(let ((map-name (intern (concat (symbol-name minor-mode-sym)
bind-map-default-map-suffix))))
- `(progn
- (bind-map ,map-name
- :minor-modes (,minor-mode-sym)
- ,@args)
- ',map-name)))
+ `(bind-map ,map-name
+ :minor-modes (,minor-mode-sym)
+ ,@args)))
(put 'bind-map-for-minor-mode 'lisp-indent-function 'defun)
;;;###autoload
- [nongnu] elpa/bind-map e94572b50b 74/97: Increment version, (continued)
- [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
- [nongnu] elpa/bind-map 26a3b5571d 88/97: Make return val consistent in bind-map,
ELPA Syncer <=
- [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