aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/repeat.el
diff options
context:
space:
mode:
authorRobert Pluim2021-11-18 19:42:44 +0200
committerJuri Linkov2021-11-18 19:42:44 +0200
commitbf824843f40a8235e2cdfc6d84d67ea2e2e96acb (patch)
tree073ba2d6f1f092153cd5ce5c32f9b88e30f5f736 /lisp/repeat.el
parent6fc94fb99e38960a24ee3a3dc441f85f786a654e (diff)
downloademacs-bf824843f40a8235e2cdfc6d84d67ea2e2e96acb.tar.gz
emacs-bf824843f40a8235e2cdfc6d84d67ea2e2e96acb.zip
* lisp/repeat.el (describe-repeat-maps): Print all bound keys (bug#49265).
Diffstat (limited to 'lisp/repeat.el')
-rw-r--r--lisp/repeat.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/repeat.el b/lisp/repeat.el
index 45201ad1aa6..4dcd353e346 100644
--- a/lisp/repeat.el
+++ b/lisp/repeat.el
@@ -533,10 +533,12 @@ Used in `repeat-mode'."
533 (dolist (command (sort (cdr keymap) 'string-lessp)) 533 (dolist (command (sort (cdr keymap) 'string-lessp))
534 (let* ((info (help-fns--analyze-function command)) 534 (let* ((info (help-fns--analyze-function command))
535 (map (list (symbol-value (car keymap)))) 535 (map (list (symbol-value (car keymap))))
536 (desc (key-description 536 (desc (mapconcat (lambda (key)
537 (or (where-is-internal command map t) 537 (format-message "`%s'" (key-description key)))
538 (where-is-internal (nth 3 info) map t))))) 538 (or (where-is-internal command map)
539 (princ (format-message " `%s' (bound to '%s')\n" command desc)))) 539 (where-is-internal (nth 3 info) map))
540 ", ")))
541 (princ (format-message " `%s' (bound to %s)\n" command desc))))
540 (princ "\n")))))) 542 (princ "\n"))))))
541 543
542(provide 'repeat) 544(provide 'repeat)