From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 6LP6Cd6c1WGcEgEAgWs5BA (envelope-from ) for ; Wed, 05 Jan 2022 14:27:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yHy4At6c1WEOXQAAG6o9tA (envelope-from ) for ; Wed, 05 Jan 2022 14:27:58 +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 A709A34A97 for ; Wed, 5 Jan 2022 14:27:57 +0100 (CET) Received: from localhost ([::1]:34394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n56Ka-0006jp-J0 for larch@yhetil.org; Wed, 05 Jan 2022 08:27:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n569S-0003kI-UK for emacs-orgmode@gnu.org; Wed, 05 Jan 2022 08:16:27 -0500 Received: from mail.hostpark.net ([212.243.197.30]:45592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n569R-0005p0-7P for emacs-orgmode@gnu.org; Wed, 05 Jan 2022 08:16:26 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id F38BF1647F; Wed, 5 Jan 2022 14:16:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received; s=sel2011a; t=1641388581; bh=ACt0WknX+TG9rcJQx+4jOY+8 MoRn3+EmMHOLkyfithY=; b=hb8j73Jp0xNOwi4SoBSLk3wfFUJeasqoIpOI9NUd 0vzh8bzoEE5Ds6gPTXKy5hdNujh3I+T7oxnpuMJHCPFa32eerrvADAyo08lxgHo3 uNpDjLw6O8cmqWWf+zl22EfNjgx1FYCJwjbEa3IjfANf4v/vSaDmHM4wLr/uh6Iw Bqo= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id q9fqb1Id3LWX; Wed, 5 Jan 2022 14:16:21 +0100 (CET) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id BDD95163FC; Wed, 5 Jan 2022 14:16:21 +0100 (CET) From: Jonas Bernoulli To: Nicolas Goaziou Subject: Re: [PATCH 2/2] ox-texinfo: Define definition commands using description lists In-Reply-To: <87mtki7vuu.fsf@nicolasgoaziou.fr> 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> <87mtki7vuu.fsf@nicolasgoaziou.fr> Date: Wed, 05 Jan 2022 14:16:21 +0100 Message-ID: <87k0fejpay.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=212.243.197.30; envelope-from=jonas@bernoul.li; helo=mail.hostpark.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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=1641389277; 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:dkim-signature; bh=PqNqnk72jety2OPmS999utYeDTl6CqdvGhmHdBjWDac=; b=HNeWLbKdbRQqI7lpHRnY5O/o1jwa2eWsn5prsQkpOPfm6agdBDhPoWG9U0mhuGPesnRmSD FSlEohHCJdBpp/9p7fr1U8An/tre6Aua4tF8Fk81/oQSax6Q1/ILVW8z25P2XmzrsPh0Oy C72EbBGtsevsPPdgbll8RNncQqX9cCEhcq6+jSPeZuamwITDoTDD/CsxL5JwlBJqI/NnLS 0tMrwcSEVzn4UiVbGkwp/eF1Icojp6dPZ7iTSi+dPAIHGy/BRELrxhP1x+9bCoWcR9587V F3jZDeUsbTxa7c/1nEGrWuf/GtgE84OpA2p+IdXSPnNEKkwt83VMNsANfZELxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641389277; a=rsa-sha256; cv=none; b=e8vI4V0xV/4waPOA4u8fj2dv5RWqe1xk9AHk5R9IOD3yAshk45eLPmQQhXxSTspCMwB7Jz 85zwQjY5P2l/xM7QL2uMRek/j0LmpcaRaFmBOP/pt/UoGV6wl59HSws3T+gFueaanRW2DD JzvWlz61OIb3DqGXfOub5WuHQw2oDxQMxFOoPLtXjNNx2LeWQQywDx0f/HokWHoxOY4HPm AV9v7RWMlhTxYZCR46Mv0LtqQhV8nJlPyLi8/YZCsAqooR+sgqumInPYN3Q/QuJM8MYYcc H/eDR6EMluPjP4NukSSxy255dqTwbwPkLHxN+H/flMPIu7BGx2wxETTvjRFH0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bernoul.li header.s=sel2011a header.b=hb8j73Jp; 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.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bernoul.li header.s=sel2011a header.b=hb8j73Jp; 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: A709A34A97 X-Spam-Score: -3.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: di7FQqpQCfaz Nicolas Goaziou writes: > 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. That works. I must of done something wrong when first trying that. >> 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. I named it org-texinfo-kbd-macro and wrote it so that it can be used by the kbd macro. I have changed doc/doc-setup.org to use it. DEL was missing from the list of special keys. Cheers, Jonas