mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-12 10:44:12 -08:00
Use declare form instead of put for clarity
* which-key.el (which-key-add-keymap-based-replacements): Use declare form instead of put property.
This commit is contained in:
parent
daae57ea19
commit
6e035b5e2f
1 changed files with 1 additions and 1 deletions
|
|
@ -1023,6 +1023,7 @@ prefix. An example is
|
|||
For backwards compatibility, REPLACEMENT can also be a string,
|
||||
but the above format is preferred, and the option to use a string
|
||||
for REPLACEMENT will eventually be removed."
|
||||
(declare (indent defun))
|
||||
(while key
|
||||
(let ((def
|
||||
(cond
|
||||
|
|
@ -1036,7 +1037,6 @@ for REPLACEMENT will eventually be removed."
|
|||
(define-key keymap (kbd key) def))
|
||||
(setq key (pop more)
|
||||
replacement (pop more))))
|
||||
(put 'which-key-add-keymap-based-replacements 'lisp-indent-function 'defun)
|
||||
|
||||
;;;###autoload
|
||||
(defun which-key-add-key-based-replacements
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue