From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74903: [PATCH] Add function to show table of keys when describing keymap variable Date: Mon, 16 Dec 2024 17:57:14 +0200 Message-ID: <86zfkvpqn9.fsf@gnu.org> References: <87v7vktu7s.fsf@posteo.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22807"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74903@debbugs.gnu.org To: Mekeor Melire , Stefan Kangas , Andrea Corallo , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 16:58:36 2024 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 1tNDUR-0005gP-Ac for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 16:58:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNDTx-0008E8-Gp; Mon, 16 Dec 2024 10:58:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNDTv-0008Dd-Jk for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 10:58:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNDTv-0005Ae-Au for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 10:58:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=hYFTDi/6XwbrcSPjarck/YyCLyRmFoZO1wgZ/vDs5ZY=; b=YSSwmV5kb7OjLsiQ9lvO4xz8yNymVsWsicMPeVDwLjCwICg8mTn0Nw4QHKDLzg1wO4wvLwhTaXWJdATQrVyCJmkJ9x0qFzmqBgGU+OdvFOyxHy6nRn4pcHgP6vAXyWuKpUr7YpXzN4BN6S3i5kdLpr1lbPafFKaUSVZ/zuJPJOMmkyx+IOa6HqkQedmNjbWWbxzwWqx1Q45HpA60P3v3puqAthVIqcHSDcQhqtEExzgWWZaZGuUIIocmFlu15nz/TBSW3kbhzoWVev7GXmiEM6VK4XqwCh5v5Rt3aY9SCLOLE/nuOIYY3+P5gGmpw/xCcNi7cMYMBYaL7UqXu+fFaA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNDTv-00016b-5t for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 10:58:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 15:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74903 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74903-submit@debbugs.gnu.org id=B74903.17343646514171 (code B ref 74903); Mon, 16 Dec 2024 15:58:03 +0000 Original-Received: (at 74903) by debbugs.gnu.org; 16 Dec 2024 15:57:31 +0000 Original-Received: from localhost ([127.0.0.1]:55650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNDTO-00015D-TB for submit@debbugs.gnu.org; Mon, 16 Dec 2024 10:57:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNDTJ-00014Y-8c for 74903@debbugs.gnu.org; Mon, 16 Dec 2024 10:57:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNDTB-00057J-V8; Mon, 16 Dec 2024 10:57:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hYFTDi/6XwbrcSPjarck/YyCLyRmFoZO1wgZ/vDs5ZY=; b=H9lpluLlb7Q3 Pu4TN4sLP7q0RUKu5zE5KH2N0VxWsuLDm8Q3q0Ugv6tNm8b9htG4uzT1hCRfk+2xESvIEsEkRig+L HM+4Z+xjSzoqzWa/u3yFoGuYMLTTrQFfW0twG3iUfRPXz0u5BfQ5jx/8DuvO88uNzX8SJrVjZtjI8 inuMKj7jy75KT6LemnUM49qKg+YEkQPZhclggxSImtH/sdY4yIfQlDkBahjVH0EXBhqk8hhswIv+e tc7TJ88OUdLpRhq7oks5sRiquxAebYRrCojUHTq/KY0gMVqvGdsccSN5t2QQ+dAK/zKAqLs1KaiZR 4/4Ck9M2xHJvuT1aujRZyw==; In-Reply-To: <87v7vktu7s.fsf@posteo.de> (message from Mekeor Melire on Sun, 15 Dec 2024 23:14:15 +0000) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297176 Archived-At: > From: Mekeor Melire > Date: Sun, 15 Dec 2024 23:14:15 +0000 > > It'd be nice if users could opt in to have C-h v some-map RET show a > nice table of key bindings for that keymap. I wrote a function that can > be added to help-fns-describe-variable-functions so that this happens. > > What do you think? > > Alternatively, we can also add a key binding to help-mode so that users > can easily "switch" from describe-variable to describe-keymap, e.g. per > "K": > > C-h v message-mode-map RET K We have "C-h b" and "C-h m" which show the bindings, albeit not by keymap. Is that not enough for some reason? Adding yet another help command related to key bindings needs to be justified, since we already have at least two with overlapping functionalities. What do others think about this?