From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id QANXFVITGWZx0QAAe85BDQ:P1 (envelope-from ) for ; Fri, 12 Apr 2024 12:56:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QANXFVITGWZx0QAAe85BDQ (envelope-from ) for ; Fri, 12 Apr 2024 12:56:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712919378; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ONJ8VsnPi4YFYZFQwrri4wlqy6FXWfak7mIxNlfUHIg=; b=Zf8LUX7WGj8igqG8QLjCWtW5vqhwGq1ljvXIuymbXu6VXop3z3WbFu7p3iQ50/s2p8fwYq J5JRuNPbNTLXI2meRWDGHSzYuTgGjGoeWwsKSNMx8/D5BM5eZ+et+eK1AXsEbldDiX3qim fn09f8CiSAsxfZN2zYDB0BizyrgYt1YP8MYdtfq86GW2nnGMSG0nY1r+/9FtPvjkX/X4R+ mfQrc+5CO8J4lghihJCscKsDJrj0zVzEfF/Bg04BDk8fVET6Z6vdM+323fa9kEOhzTc57T +AM8s/uPvBqeq/8Ygxwb79aRh/qxoGLZJ+T9sPlePuJJ3uSOEGX+qYPZ4ZCX7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712919378; a=rsa-sha256; cv=none; b=sv/XpqQOFMogR9P3d6fWch3nKFkbdSB/TXY1OLWWf5oLhV5kfzsku98Q7fOrpzGrKZhUGp QxIhliB9qEAZIROlZBZQXtg77nRKcqaP3zI1nrT1MXE9jVblIVgJfPrs+oZ/7ghuz7j0Qw /z06m+vmeyvcVnb3uLNjTYe5HE3Pp9JKicj9g2b1WhYjTKHeNsUnrND/yuvOCvMtxHhHiC Pj7v5hkBGuZmcrfHkNtt+gb4v+YboVrMGiZaRye1VtdJGkIdQ9KJrvyk+6tu1ofHfDZBix ifR/1+HtMFVYWEV39ZwE2Go9a0P1qTrvu8F9HAwiLjl9/owm3YH+1WQs8NvY0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) 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 044FF15D50 for ; Fri, 12 Apr 2024 12:56:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvEYx-00034D-2F; Fri, 12 Apr 2024 06:55:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvEYu-00033z-Ar for emacs-orgmode@gnu.org; Fri, 12 Apr 2024 06:55:16 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvEYp-0002JO-Ur for emacs-orgmode@gnu.org; Fri, 12 Apr 2024 06:55:13 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rvEYm-0006Y3-8T for emacs-orgmode@gnu.org; Fri, 12 Apr 2024 12:55:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Verbatim content (inline-special-block) Date: Fri, 12 Apr 2024 17:55:01 +0700 Message-ID: References: <0f1351e2-cb5e-4b65-9faf-c6e78f15c975@gmail.com> <3ada6078-6c03-447c-9e32-32ca0967cac3@gmail.com> <877ch4ys1a.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: <877ch4ys1a.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 0.99 X-Spam-Score: 0.99 X-Migadu-Queue-Id: 044FF15D50 X-Migadu-Scanner: mx12.migadu.com X-TUID: BV9QaQN/qMYl On 11/04/2024 19:58, Ihor Radchenko wrote: > Max Nikulin writes: >>> @code{ unlike =code=, we can have leading and trailing spaces } >>> @code{ @foo{is not interpreted inside}} >> >> I think, it should be controlled by some optional parameter like >> >> @kbd[:verbatim t]{ unlike =code=, ... } > > I do not like this idea - this will make the attribute list a part of > the Org markup spec, I see you point and I agree that it is valid concern. On the other hand I do not have strong opinion what variant is better. > It may be enough to have @kbd{@code{...}} - it is not like Texinfo has a > concept of truly verbatim text like in Org. > > Alternatively, we may allow two classes of inline markup: > @foo{parsed *text* inside} > and > @foo={verbatim *text* inside}/@foo~{verbatim *text* inside} > > This way, instead of @code{}, we should use @code~{...} or even > @~{...}/@={...} (mnemonics for ~...~ and =...=) I consider @foo={}-like variants as unnecessary complications of the inline special block feature. The idea of composition is better from my point of view. With this approach it is enough to have non-conflicting syntax for non-parsed fragments. I am against making @code{} a special name with suppressed markup parsing. The price of composition in comparison with @foo={} is more verbose markup. By the way, Org has src_lang{...} syntax for almost non-parsed fragments (neglecting requirement of balanced curly brackets that is an issue). Actually "=" in @foo={} is a kind of special argument distinct from ones specified inside [] and {}. >> @code{def calculate(@param{expr}, @param{env})} [...] > Also, the reason why Texinfo users do @param in @code is the lack of > automatic syntax highlighting, unlike in Org mode. Is ox-texinfo able to convert syntax highlighting to native texinfo markup? So if @markup{} is not allowed in verbatim content then it is another feature loosely related to custom inline blocks.