From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gCV4BUUaKWVjGQAAauVa8A:P1 (envelope-from ) for ; Fri, 13 Oct 2023 12:21:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gCV4BUUaKWVjGQAAauVa8A (envelope-from ) for ; Fri, 13 Oct 2023 12:21:57 +0200 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 CC135647AB for ; Fri, 13 Oct 2023 12:21:56 +0200 (CEST) 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=1697192517; 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=nWXzCuL+Q9j+dIIgxTnV8UgzijiB5kHyMKOWoaN9JXQ=; b=hkkyIZRq9TWwX6CaXd1quJvuXbppyZiJCTAREoE5Ta6QEGbQUqoht6To7mmFlN1RF43YkV 6DGPPRn6Xep4S2zic54H2Ww3Axs1mAok7mNFo73jNY/S5uLH0Je9b7KuRU2cHRzErdnoaz D2L10Cy7FRZ+9M56YrDIi28vLKC5cu6vdHKOh0kQRETdv1z6q5IMYDUeCLVGB4prf1F5dA wGwoEH8oLYryqPflyK3Mt6Phm2W0r3y+SWQ7D2zA3NKxCML/p5eVX+f0UFyG0R8a92yMP8 MuVICk1F4XgH1zi8hk1REOa+yBJlly0ocRQyGPKkYPlDYRYi+m10lcTx0a2YHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697192517; a=rsa-sha256; cv=none; b=lgzpJ7mxFFZeYkHa7rcz5qJf+EiUYw17CM1rAU89vbAHKF9i/fsMQEKoFx1lxDq3HVFjcW wCwV41DWNLI8BiCFPxozh/6771ciXnIiGq2vnuptzSG27TKVIU5TJk/PXkq3I5XoirwYjq zb7DN732ZKMWH+Y9B7UZw4fHuVk0rkMT/FWJGUBBJiycpTuuLYt92J6pw09bqAdbJfykis E9BO0NuxJ5FjuJnPtSds+m/biTV+FcBDA6YRzq/Bs5zJeoZATfkNUctGdWBmialai2YQKW aibPGjaKysQOMdOF5qGNr7clUE/DOFljeLN2NZVJhAQSjTkyehObcdyoWupKpg== 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrFI4-0000Vw-2N; Fri, 13 Oct 2023 06:21:08 -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 1qrFI2-0000S4-Bd for emacs-orgmode@gnu.org; Fri, 13 Oct 2023 06:21:06 -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 1qrFHz-00015p-QR for emacs-orgmode@gnu.org; Fri, 13 Oct 2023 06:21:05 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qrFHw-00075G-5h for emacs-orgmode@gnu.org; Fri, 13 Oct 2023 12:21:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Exporting elisp: and shell: links Date: Fri, 13 Oct 2023 17:20:42 +0700 Message-ID: References: <87il8v2q00.fsf@riseup.net> <89434f4f-8aea-23f2-bbfc-3961c18f2154@gmail.com> <87a5u6tgb3.fsf@localhost> <878r9nofpw.fsf@localhost> <8734ztvtvk.fsf@localhost> <875y4326v2.fsf@localhost> <8734z19pwy.fsf@localhost> <87r0m5phrc.fsf@localhost> <87zg0skn9t.fsf@localhost> <87il7ckr8k.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: <87il7ckr8k.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: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 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.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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-Spam-Score: 2.33 X-Migadu-Queue-Id: CC135647AB X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: 2.33 X-TUID: 5Wtf7I6uITpg On 12/10/2023 18:35, Ihor Radchenko wrote: > Max Nikulin writes: > >>> I like more how ox-ascii (without the >>> proposed diff) handles the situation via footnote-like link. >> >> That is why I believe that extracting fragments of code into helper >> functions is important. If ox-ascii.el had a function that adds an item >> to link list then ol.el would use it to add src_elisp elements to this list. > > May you elaborate? I am not talking about implementation details, but > about the reasonable defaults for the export. Not necessary ASCII, but > other backends as well. I am rather skeptical concerning a variant that is pleasant to read in all cases. That is why I suggest to provide tools that allow to customize export accordingly their writing styles. ASCII is a special case since it uses end note style to present link targets. Whether code is added before link description or after it, either parenthesis are used or not, the following functions may be convenient for Org and for users: - export argument as inline source block - add an item to ASCII list of links