]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/repeat.el (describe-repeat-maps): Print all bound keys (bug#49265).
authorRobert Pluim <rpluim@gmail.com>
Thu, 18 Nov 2021 17:42:44 +0000 (19:42 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 18 Nov 2021 17:42:44 +0000 (19:42 +0200)
lisp/repeat.el

index 45201ad1aa6274dace24e7faafdbafc859233e29..4dcd353e346d374b25235e362e9c090105a8de34 100644 (file)
@@ -533,10 +533,12 @@ Used in `repeat-mode'."
           (dolist (command (sort (cdr keymap) 'string-lessp))
             (let* ((info (help-fns--analyze-function command))
                    (map (list (symbol-value (car keymap))))
-                   (desc (key-description
-                          (or (where-is-internal command map t)
-                              (where-is-internal (nth 3 info) map t)))))
-              (princ (format-message " `%s' (bound to '%s')\n" command desc))))
+                   (desc (mapconcat (lambda (key)
+                                      (format-message "`%s'" (key-description key)))
+                                    (or (where-is-internal command map)
+                                        (where-is-internal (nth 3 info) map))
+                                    ", ")))
+              (princ (format-message " `%s' (bound to %s)\n" command desc))))
           (princ "\n"))))))
 
 (provide 'repeat)