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 Tue, 29 Jun 2021 21:33:07 +0000, Drew Adams <drew.adams <at> oracle.com> said:
>> Now a new command named 'describe-repeat' was pushed to master. Please try
>> it. If everything is right, this request could be closed.
Drew> Where was it added to master? I downloaded the latest
Drew> help-fns.el, and I don't see it there. Could you perhaps
Drew> post the code here? Could you perhaps say, here, just
Drew> what it does? Thx.
Itʼs in repeat.el (and it does what I described 30 seconds ago, but
better :-) )
Iʼm not sure what the use of showing the keymaps is though. Theyʼre an
internal implementation detail, showing the potential bindings would
be more useful.
(defun describe-repeat ()
"Describe repeatable commands and keymaps."
(interactive)
(help-setup-xref (list #'describe-repeat)
(called-interactively-p 'interactive))
(let ((keymaps nil))
(all-completions
"" obarray (lambda (s)
(and (commandp s)
(get s 'repeat-map)
(push s (alist-get (get s 'repeat-map) keymaps)))))
(with-help-window (help-buffer)
(with-current-buffer standard-output
(princ "This is a list of repeatable keymaps and commands.\n\n")
(dolist (keymap (sort keymaps (lambda (a b) (string-lessp (car a) (car b)))))
(princ (format-message "`%s' keymap is repeatable by these commands:\n"
(car keymap)))
(dolist (command (sort (cdr keymap) 'string-lessp))
(princ (format-message " `%s'\n" command)))
(princ "\n"))))))
Robert
--
This bug report was last modified 3 years and 184 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.