From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Using Org as the source format to generate org.texi Date: Tue, 13 Mar 2018 17:55:50 +0200 Message-ID: <837eqgrmux.fsf@gnu.org> References: <878tb5axms.fsf@bzg.fr> <87371762r3.fsf@nicolasgoaziou.fr> <87zi3dcrq1.fsf@nicolasgoaziou.fr> <83po49s36j.fsf@gnu.org> <876061ckk7.fsf@nicolasgoaziou.fr> <83h8plrygn.fsf@gnu.org> <87tvtlb2j4.fsf@nicolasgoaziou.fr> <83efkprqw2.fsf@gnu.org> <87vae19drk.fsf@nicolasgoaziou.fr> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1520956487 32523 195.159.176.226 (13 Mar 2018 15:54:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2018 15:54:47 +0000 (UTC) Cc: rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Nicolas Goaziou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 13 16:54:42 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evmGA-0008Mt-42 for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2018 16:54:42 +0100 Original-Received: from localhost ([::1]:40711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evmID-0007pc-6n for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2018 11:56:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evmHN-0007oK-0o for emacs-devel@gnu.org; Tue, 13 Mar 2018 11:55:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evmHM-0000pv-CC for emacs-devel@gnu.org; Tue, 13 Mar 2018 11:55:57 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evmHF-0000kf-75; Tue, 13 Mar 2018 11:55:49 -0400 Original-Received: from [176.228.60.248] (port=4349 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1evmH8-0007Pd-98; Tue, 13 Mar 2018 11:55:42 -0400 In-reply-to: <87vae19drk.fsf@nicolasgoaziou.fr> (message from Nicolas Goaziou on Mon, 12 Mar 2018 22:37:19 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223693 Archived-At: > From: Nicolas Goaziou > Cc: emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca > Date: Mon, 12 Mar 2018 22:37:19 +0100 > > There, I hard-code a number of keys (e.g., SPC, RET, LFD, TAB, BS...) > which, when matching case sensitively the macro value, are replaced with > @key{...}. So, > > {{{kbd(FOO)}}} => @kbd{FOO} > {{{kbd(spc)}}} => @kbd{spc} > {{{kbd(S P C)}}} => @kbd{S P C} > > but > > {{{kbd(SPC)}}} => @kbd{@key{SPC}} > {{{kbd(R E T M-RET)}}} => @kbd{R E T M-@key{RET}} I don't think this can be a reliable solution, because there are many more keys we use in the manuals, like HOME, END, LEFT, RIGHT, UP, DOWN, PageUp, PageDown, NEXT, PRIOR, EDIT, F1, etc. We can never reliably hard-code any fixed list and hope to get away with it.