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.help Subject: Re: Is there any handy way to view a custom key map? Date: Sat, 15 Jan 2022 17:19:42 +0200 Message-ID: <83v8ylyqk1.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9940"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 15 16:21:52 2022 Return-path: Envelope-to: geh-help-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 1n8ksK-0002Lc-2X for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 Jan 2022 16:21:52 +0100 Original-Received: from localhost ([::1]:47876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8ksI-0003kj-Gi for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 Jan 2022 10:21:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8kqU-0003kY-9U for help-gnu-emacs@gnu.org; Sat, 15 Jan 2022 10:19:58 -0500 Original-Received: from [2001:470:142:3::e] (port=59826 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8kqT-0007ei-2j for help-gnu-emacs@gnu.org; Sat, 15 Jan 2022 10:19:57 -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=zZX6g4tn9YV2vAIy4L7zNkPx/yExr10i580E/mQ26wA=; b=Rxw+V/u2h6Pz R2DUHlOOvFunz9UcdC54T569pq+duLf9LDuB7sMLPoPLPzuE0oP0nAdtUPLU3x2Fy5qNvetqtmlT2 Q0INLqFZhwl0oXzKPH1/ByRJ7JGjZShZCYIRBtLOq3NvEmWVDMx9PKnxGv2pnjLo/nN06IjHd3bNc Gr+fwWzsLEK3U8ro1EZ0TxzoEjyLFFeGf0q3mkljIoBxStnop/fqhP2tp6wULSB4gWxHg4tar+4y7 QJjTSLKpOUxSmvn+QwMEEJD4Agj78MErG1byxCIZmGzdCmdVot5cl1XCycGbiMKRTDz86q+4f+meP N1mHPTcqic6iLIokPTZOGQ==; Original-Received: from [87.69.77.57] (port=2270 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8kqS-0006Xc-TF for help-gnu-emacs@gnu.org; Sat, 15 Jan 2022 10:19:57 -0500 In-Reply-To: (message from Jean Louis on Sat, 15 Jan 2022 18:02:19 +0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135326 Archived-At: > Date: Sat, 15 Jan 2022 18:02:19 +0300 > From: Jean Louis > > I have plethora of various screens displaying lists of items from the > database. Different database tables have different key maps. > > Example: > > (defvar rcd-db-mode-map > (let ((map (make-sparse-keymap))) > (set-keymap-parent map tabulated-list-mode-map) > (define-key map (kbd "/") #'rcd-tabulated-filter) > (define-key map (kbd "G") #'goto-line) > (define-key map (kbd "Q") 'rcd-db-kill-database-buffers) > (define-key map (kbd "U") 'rcd-tabulated-remove-marks) > (define-key map (kbd "V") #'rcd-tabulated-id-to-register) > (define-key map (kbd "\\") #'rcd-tabulated-filter-reset) > (define-key map (kbd "d") #'rcd-db-delete-tab-database-entry) > (define-key map (kbd "e") #'rcd-db-edit-tab-database-entry) > (define-key map (kbd "g") #'rcd-tabulated-refresh) > (define-key map (kbd "j") #'next-line) > (define-key map (kbd "k") #'previous-line) > (define-key map (kbd "m") #'rcd-tabulated-mark-id) > (define-key map (kbd "u") #'rcd-tabulated-unmark-id) > (define-key map (kbd "z") #'rcd-tabulated-refresh) > map) > "The basic RCD database keymap") > > Similarly to command C-h m I would like to display those key bindings, > though separate from C-h m screen. > > Something like this below would be fine: > > Key Binding > > Q rcd-db-kill-database-buffers > U rcd-tabulated-remove-marks > V rcd-tabulated-id-to-register > d rcd-db-delete-tab-database-entry > > I would even prefer that key bindings have their description, so that > instead of the name of function under "Binding" there appears human > readable text something like "Remove Marks" instead of > "rcd-tabulated-remove-marks". > > Does such function or opportunity exists anywhere? Is "C-h b" what you are looking for?