* lisp/repeat.el (describe-repeat-maps): Handle non-symbol keymap (bug#21634).
This commit is contained in:
parent
0e99046d62
commit
5866fd5fec
1 changed files with 6 additions and 2 deletions
|
|
@ -563,13 +563,17 @@ Used in `repeat-mode'."
|
|||
(insert "A list of keymaps used by commands with the symbol property `repeat-map'.\n\n")
|
||||
|
||||
(dolist (keymap (sort keymaps (lambda (a b)
|
||||
(string-lessp (car a) (car b)))))
|
||||
(when (and (symbolp (car a))
|
||||
(symbolp (car b)))
|
||||
(string-lessp (car a) (car b))))))
|
||||
(insert (format-message
|
||||
"`%s' keymap is repeatable by these commands:\n"
|
||||
(car keymap)))
|
||||
(dolist (command (sort (cdr keymap) #'string-lessp))
|
||||
(let* ((info (help-fns--analyze-function command))
|
||||
(map (list (symbol-value (car keymap))))
|
||||
(map (list (if (symbolp (car keymap))
|
||||
(symbol-value (car keymap))
|
||||
(car keymap))))
|
||||
(desc (mapconcat (lambda (key)
|
||||
(propertize (key-description key)
|
||||
'face 'help-key-binding))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue