From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Goaziou Newsgroups: gmane.emacs.devel Subject: Re: Using Org as the source format to generate org.texi Date: Mon, 12 Mar 2018 22:37:19 +0100 Message-ID: <87vae19drk.fsf@nicolasgoaziou.fr> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520890543 14765 195.159.176.226 (12 Mar 2018 21:35:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2018 21:35:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 12 22:35:39 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 1evV6Y-0003hd-SZ for ged-emacs-devel@m.gmane.org; Mon, 12 Mar 2018 22:35:38 +0100 Original-Received: from localhost ([::1]:35096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evV8b-0007D2-E7 for ged-emacs-devel@m.gmane.org; Mon, 12 Mar 2018 17:37:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evV8N-00079O-SA for emacs-devel@gnu.org; Mon, 12 Mar 2018 17:37:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evV8M-0000yH-SZ for emacs-devel@gnu.org; Mon, 12 Mar 2018 17:37:31 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:41449) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1evV8I-0000pm-28; Mon, 12 Mar 2018 17:37:26 -0400 X-Originating-IP: 185.131.40.67 Original-Received: from saiph (unknown [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 51FA3240004; Mon, 12 Mar 2018 22:37:21 +0100 (CET) Original-Received: from ngz by saiph with local (Exim 4.89) (envelope-from ) id 1evV8B-0001Db-5f; Mon, 12 Mar 2018 22:37:19 +0100 In-Reply-To: <83efkprqw2.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Mar 2018 22:16:29 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.193 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:223663 Archived-At: Eli Zaretskii writes: > It can't be both, because then you cannot distinguish between > @kbd{FOO}, which means type the 3 characters F O O, and @key{FOO}, > which means press the key labeled "FOO". I understand the difference between @kbd{FOO} and @key{FOO}, but you probably didn't look at the implementation of {{{kbd(...)}}}. 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}} > Yes, something else: we need a separate {{{key(...)}}} construct, or > something else that will produce @key{...} in Texinfo. I still think we may not need that, as shown above. This works pretty well for Org manual, actually. So, if you need @key alone, I was simply suggesting that, for example {{{kbd(SPC)}}} => @key{SPC} {{{kbd(S P C)}}} => @kbd{S P C} It would be very wrong to write @kbd{SPC} if you mean type the 3 characters S P C anyway.