1
Fork 0
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:
Jeremy Bryant 2024-03-08 23:20:07 +00:00 committed by Justin Burkett
parent daae57ea19
commit 6e035b5e2f

View file

@ -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