From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CGntBcFtS2XBLAAAG6o9tA:P1 (envelope-from ) for ; Wed, 08 Nov 2023 12:15:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CGntBcFtS2XBLAAAG6o9tA (envelope-from ) for ; Wed, 08 Nov 2023 12:15:13 +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 CD357349E2 for ; Wed, 8 Nov 2023 12:15:12 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UM9QJaQq; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699442113; a=rsa-sha256; cv=none; b=JYN8uPantxRvdXfNE0q8Eo2h17wvXN8fMe1lGNIOHpknQx2D4SOQNYMYhXi78G16hADxzI 3+yNXDZNcCRL+hpVcZqRtXRtFigAdgfhqEidEZCvRmzjdwresgQvYH80hsXZhwmj3i0dYU tNbfKN2BGKNXih/x3NKQvYL5iLlPkshZ1Qd6Bwxesid0zvd/l5gYU6XYFZNRTUrGemkbL7 MDosHbBHZtaJ6Vii5q79Ftu+g4iG9hI04FohiAKv7OlOTeuGO8TEx4vc0SXZrgB/pa0XC0 3ebnhZSVunR+j8hxveiQxnqSVbCPNb+vj9wnHYEfM8wQlUaJx5aOVCwNw5q+Lg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UM9QJaQq; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699442113; 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=ZaXAVIqg+hXUFLuhaYcjj2psDkKWIyrFXrrW72ZFxCY=; b=mPQfz4L4/CFJECgGfk4Ggh/eA8yJxaHp74U7g9Brp6nzAtukimTG9ncEetvrantkmevXMO LxhK3SUHRo9N1MM8XLFM733+q8z09EFPdYIQvPEXyhDNjzvhZ9U5k0fLC8GiR6HwFbk6HK nvFQduXrPVJha4D9AawDSouBzVXF7ChS1EMqg3OzhW+HsHxELSu9aJoRgLb9H9V9JOb/4j UiRaSH1Mkg7Bwdx1dVR++i67Vb0CNTqUelpWv2NNjBqo3WXsJnqPXwy0+WlM90Z0YTMqDY Kqf0IW46cSAFyHHKliV/EMqymeRDA7X21P3oF4ZWVWufVAK4sDNgoQ4DyNpOfA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0gVf-0002N7-8H; Wed, 08 Nov 2023 06:14:11 -0500 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 1r0gVd-0002Mk-GN for emacs-orgmode@gnu.org; Wed, 08 Nov 2023 06:14:09 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0gVb-0007bA-7m for emacs-orgmode@gnu.org; Wed, 08 Nov 2023 06:14:09 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5834B240027 for ; Wed, 8 Nov 2023 12:14:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699442044; bh=M0PzVG0UAFfgPUjZMICtsdJqsQBbwaJwbOTMO1WTvKA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=UM9QJaQqkimiRf4js+thWH77ci2i6+IllI/dDT1dN0biWliPLC7gh+9ld3gui22a/ 6NOuIMEwCQdva9S8Yj7wsyXx46+/pn2j9v/Fntr+o0NANUd0Lq1/tVLalALZBhjX5Z yH6/xZDsTLAYDRV9lbpf2tkLNzNWx+PkuPyiXSX7NjjYYVQ0jg2j+UQ9RrN9WvUqEV V8aMKIpY/0uRWAzXePtO8BOxoLNXs0+XXtdJwKKlS8HFAxboyTPDTgqUirIuc60L6E 0zGD6RD2GGSh54gznmZF8LLzW76+I08Pd6W7P/Q/M4faGHHWMR/WFGfJ5ZO2Heqf3u gHeG4UWQuVbeg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SQMsl3DdQz9rxB; Wed, 8 Nov 2023 12:14:03 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [RFC][PATCH v2] Allow to export to ascii custom link types as notes In-Reply-To: References: <874jijaukf.fsf@localhost> <8734y1aeae.fsf@localhost> <87lebt8rrm.fsf@localhost> <87v8ad29n2.fsf@localhost> <87il6d22rr.fsf@localhost> <8734xgfrrd.fsf@localhost> Date: Wed, 08 Nov 2023 11:16:09 +0000 Message-ID: <87zfzoebra.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , 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-Queue-Id: CD357349E2 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.98 X-Spam-Score: -6.98 X-TUID: R5Kp/A1UibqC Max Nikulin writes: > On 08/11/2023 17:45, Ihor Radchenko wrote: >> (unless (org-element-property :org-link-code-exported link) >> (setq link (org-element-copy link)) >> (org-element-put-property link :org-link-code-exported t) >> (org-element-put-property :raw-link (org-element-create-inline-src-block ...))) > > From my point of view a non-trivial element as :raw-link is a more ugly > kludge than returning a `cons'. Perhaps a fragment of plain text with > e.g. attr_ascii_note attribute set to inline source block is a better > alternative. I think that a middle ground could be introducing pseudo objects, like what we do in ox-latex: See latex-math-block, latex-matrices, `org-latex-math-block-tree-filter', `org-latex-matrices-tree-filter', and the corresponding transcoders. We can introduce a special ox-ascii-specific object `object-with-note' that will be exported by ox-ascii according to `org-ascii-links-to-notes' settings. Then, we can transform link objects into `object-with-note' that will later be used in `org-ascii--describe-links'. WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at