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.devel Subject: Re: Keybinding styles Date: Thu, 09 Sep 2021 08:39:51 +0300 Message-ID: <83k0jql32w.fsf@gnu.org> References: <87lf4dnk0z.fsf@gmail.com> <87wnnr2rgn.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="15527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: andremegafone@gmail.com, theophilusx@gmail.com, rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: John Yates Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 09 07:41:15 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mOCoF-0003oR-Em for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Sep 2021 07:41:15 +0200 Original-Received: from localhost ([::1]:60312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOCoE-0001pR-5c for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Sep 2021 01:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOCmq-00012O-Q3 for emacs-devel@gnu.org; Thu, 09 Sep 2021 01:39:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47608) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOCmp-0002B6-8f; Thu, 09 Sep 2021 01:39:47 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1785 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 1mOCmg-0001Mh-2C; Thu, 09 Sep 2021 01:39:38 -0400 In-Reply-To: (message from John Yates on Wed, 8 Sep 2021 16:37:05 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274422 Archived-At: > From: John Yates > Date: Wed, 8 Sep 2021 16:37:05 -0400 > Cc: Tim Cross , Emacs developers , > Richard Stallman , Stefan Monnier > > On Wed, Sep 8, 2021 at 8:15 AM André A. Gomes wrote: > First iteration: > * Add a new Tex markup item whose required first argument > would be a function name and whose optional second argument > would be a key sequence. > * Makeinfo would make both data available in the generated info > file. A standalone info reader would display the optional second > argument if present. The emacs info reader would lookup any > current bindings for the function name. > > Second iteration: > * Modify makeinfo to accept a table of bindings. In this case any > optional second argument would be ignored. Instead bindings > for a function name would be looked up in that table and included > in the output. I don't see a need to modify anything but info.el. A table that you want already exists: it's the Index. We need a special-purpose index for this: one that maps commands to keys, but Texinfo already supports the capability of defining new types of indices. A markup for keys also already exists. So all that's needed is to add a feature to info.el to display a different set of keys given some state variable. Of course, the printed manual will still show only the standard key bindings, and so will the HTML-formatted manual we put on the Web site.