From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#49265: [External] : bug#49265: 28.0.50; repeat mode feature request Date: Thu, 18 Nov 2021 19:44:34 +0200 Organization: LINKOV.NET Message-ID: <867dd5we7x.fsf@mail.linkov.net> References: <87czs53aei.fsf.ref@aol.com> <87czs53aei.fsf@aol.com> <87h7hh6o8t.fsf@mail.linkov.net> <87wnqcv25h.fsf@mail.linkov.net> <874kdfekr8.fsf@gmail.com> <87r1gj6say.fsf@mail.linkov.net> <86h7cdb94o.fsf@mail.linkov.net> <86a6i58elf.fsf@mail.linkov.net> <86lf1miumm.fsf@mail.linkov.net> <87czmxn4zr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39241"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 49265@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 18 18:46:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnlUB-000A3R-1e for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 18:46:11 +0100 Original-Received: from localhost ([::1]:33614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnlUA-0005e0-0m for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 12:46:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnlU3-0005do-8d for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnlU2-0002DE-Cl for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnlU2-0007rZ-AG for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Nov 2021 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49265 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 49265-submit@debbugs.gnu.org id=B49265.163725751427432 (code B ref 49265); Thu, 18 Nov 2021 17:46:02 +0000 Original-Received: (at 49265) by debbugs.gnu.org; 18 Nov 2021 17:45:14 +0000 Original-Received: from localhost ([127.0.0.1]:37112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnlTF-000780-Ik for submit@debbugs.gnu.org; Thu, 18 Nov 2021 12:45:13 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:57871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnlTC-0006yO-Py for 49265@debbugs.gnu.org; Thu, 18 Nov 2021 12:45:11 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 8CE866000D; Thu, 18 Nov 2021 17:45:02 +0000 (UTC) In-Reply-To: <87czmxn4zr.fsf@gmail.com> (Robert Pluim's message of "Thu, 18 Nov 2021 11:16:24 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220337 Archived-At: > 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: > > + (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)))) Thanks, works nicely, so pushed it now.