From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CJwbMSQEzWGUXQAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 01:58:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MN97LiQEzWGSvwAA9RJhRA (envelope-from ) for ; Thu, 30 Dec 2021 01:58:12 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 56BB3F58C for ; Thu, 30 Dec 2021 01:58:12 +0100 (CET) Received: from localhost ([::1]:53008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2jlj-0004Rd-FV for larch@yhetil.org; Wed, 29 Dec 2021 19:58:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2jl9-0004R4-Uz for emacs-orgmode@gnu.org; Wed, 29 Dec 2021 19:57:35 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:45741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2jl7-0003bK-Rt for emacs-orgmode@gnu.org; Wed, 29 Dec 2021 19:57:35 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 1F9ACFF802; Thu, 30 Dec 2021 00:57:29 +0000 (UTC) From: Nicolas Goaziou To: Jonas Bernoulli Subject: Re: [PATCH 2/2] ox-texinfo: Define definition commands using description lists References: <87pmqhmvg1.fsf@bernoul.li> <20211218214038.9459-1-jonas@bernoul.li> <20211218214038.9459-3-jonas@bernoul.li> <87sfuf9gz8.fsf@nicolasgoaziou.fr> <87y2457wks.fsf@bernoul.li> Date: Thu, 30 Dec 2021 01:57:29 +0100 In-Reply-To: <87y2457wks.fsf@bernoul.li> (Jonas Bernoulli's message of "Mon, 27 Dec 2021 19:05:07 +0100") Message-ID: <87mtki7vuu.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.199; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-d.mail.gandi.net X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kyle@kyleam.com, emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640825892; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=5zLj0qbXJZDKmsZ7BCE13JV+E3pCjjeNGZxlHU9caG8=; b=Y05XWIHwsPAmVHKMIwbm8foN8aXtnBtB/VW3386ExArOk7HJUWXAEKWZfI5HK3C1jxy2U/ ioKay9D9PtkYfNyudlVmxEowRPZkRxI7acjmeOGTiZ6+q3iwMp8Y0+sdimiHJWcWTGMtLG uBxsNa1a+nbDT5NxkkpmdRjf9f/6bkyoFSy2yu/Q4ebtViLi4iTdttvtZs2VWVAdyavnuc RAasZefYsyDUCHRyow+ws7vJ9bMnYjjRRaL8TdfuLVeGFmn/9cV+M+mqugyz5eMRZb55zd TFj6HSrTOEbgHDFd0U34NoYmBhSzk0rnPsW7FTWHd2W93/d3wTnytTHMTYI0aw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640825892; a=rsa-sha256; cv=none; b=oSfXqOXG47G9rdrPJDqMflePEjtmoZT9ZnUCDSxkLOGFjYel55xTdR1L1YM5lsdbtGNrva JaY6cQHr/tmGIu6EVYXNzHrw4LDggi3zN/wYh2PvnHjB2IVAs1yEf6KQpbGymyi10CYjjJ H5kHkqxiw8H/l2zgy+LebHljFzWCXZ8/YsKaSSFXN138XFaNRn6WVAWAbQLq6gXU+hhWAU y3MFd5vKtZvmNVC9L4VCktn39AndIQpkKu4Y9QnRKzAsLIwk0r+uqoYwaRm5P4OfWrJ6p4 A6eIJFe7mpARTbgKr/ea1xq7PoAI44vSs3TCKLdkk7/Q2Znpcgf0rBJnV8uPUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 56BB3F58C X-Spam-Score: -3.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: 23JWaUiMGbag Hello, Jonas Bernoulli writes: > Would it be okay to represent e.g. "C-c SPC" as: > > (export-snippet > (:back-end "texinfo" :value "@kbd{C-c @key{SPC}}" :post-blank 0 :parent #2)) Just use (org-export-raw-string "@kbd{C-c @key{SPC}}") instead. > I think that is one of the things I tried that ox-texinfo insisted on > quoting anyway. I might misremember, so I will have another look. `org-export-raw-string' is a recent addition in Org. > Above I suggested using an `export-snippet' element (instead of `raw'); > to me that seems appropriate too. I think that's abusing export snippets. They are more user-oriented, e.g. filters can apply to them. Note you can write (org-export-raw-string (some-public-function "C-c SPC")) where (some-public-function "C-c SPC") => "@kbd{C-c @key{SPC}}", as done currently by the "kbd" macro. Regards, -- Nicolas Goaziou