GNU bug report logs -
#49265
28.0.50; repeat mode feature request
Previous Next
Reported by: Ergus <spacibba <at> aol.com>
Date: Mon, 28 Jun 2021 22:15:01 UTC
Severity: wishlist
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>>>>> On Wed, 17 Nov 2021 19:01:37 +0200, Juri Linkov <juri <at> linkov.net> said:
Juri> Hi Robert,
Juri> What do you think about using `map-keymap' in `describe-repeat-maps'
Juri> to fix the following problem? Could it help to print all keys
Juri> bound to the same command?
>> I noticed one shortcoming: describe-repeat-maps prints
>> only one keybinding for every command. But sometimes
>> the same command is bound to more than 1 key in the same keymap.
You donʼt need `map-keymap' for that:
diff --git a/lisp/repeat.el b/lisp/repeat.el
index 45201ad1aa..5458ff30e5 100644
--- a/lisp/repeat.el
+++ b/lisp/repeat.el
@@ -533,10 +533,11 @@ describe-repeat-maps
(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 "'%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)
This bug report was last modified 3 years and 185 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.