From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mFhlGJRiT2U9ggAAauVa8A:P1 (envelope-from ) for ; Sat, 11 Nov 2023 12:16:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mFhlGJRiT2U9ggAAauVa8A (envelope-from ) for ; Sat, 11 Nov 2023 12:16:36 +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 0C6C51646C for ; Sat, 11 Nov 2023 12:16:36 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GvePQ1Ph; 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=1699701396; a=rsa-sha256; cv=none; b=UQre/8LJ+fxSEtDtW4ZCBVV1EWMrbBeNR6rWxJMgRMSfn2QQx5+aZWbnEA2n5h5JkL3S8U +ssqX6dj5LvTG8dwabG6W8/vHPYSs46D+7W7vvCEx432srgaa2ZErvbiJcjskLIoa1hpQ+ MJXCkwaFkKOnM93xtGeBsj5d7b2+R8yp+txrcKMn/W9I0TO88OTz7k+PMj827SIQiHNOQl m8CIsyRDEXb5ZUkjiy8MVKF2rWcUzCsPeIJDFRhrqQR4kEjocEmqvdfzVr43bxpdisqhvv OiHiCoWkNjMv9YUWJjgbxtd3k3G7yLOUPjgZiywq2eJLrGFISeMXOOeKCXEdbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699701396; 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=XHFwycOD4Fs5fyjR8yjXhV6jU/AoUbIWIa6YraooMpI=; b=gK+iZu1hlg+eMvx3uRvDtZPRhWpXEa4a4eZ8kSd+Dwb42mnXhtBLgEdOBeq/T52R+fsTyv g40+fW2uOxDN29q3FcBYQ7iZ4IdPmoatOnyNrSxHlH7KD09inlG3OMFkjRrigXYg3fhSkA n2vGb4yRJAxrjboNKTMZYciFTNoyMt0aZ1wYzehCAoMuExRY3ZlMVyWk+5oX541umRDowi +8p9C/j7ucX9O0Ypvta++0/o7vJIbSRH8XuSXRwPk9YSrarbddHpNL4ie/fZtRuZl8NCkV OqxaxHc7ZZCt7uOWX7NyKHkbMcADAfV108IdoiFUWMwuawDdA9j8WMOucqO4bg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GvePQ1Ph; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1ly4-0005FL-6W; Sat, 11 Nov 2023 06:16:00 -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 1r1lxt-0005EP-Qy for emacs-orgmode@gnu.org; Sat, 11 Nov 2023 06:15:57 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1lxr-0002cl-BQ for emacs-orgmode@gnu.org; Sat, 11 Nov 2023 06:15:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5893D240101 for ; Sat, 11 Nov 2023 12:15:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699701344; bh=PvAAWd0zqbvh0s6jE30HV6jeXj38lBjEU4pQNYaG4YE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=GvePQ1PhB2s1GohTX5yWGalBstxee5LZbzT9X7eH4ccJsBqJ7e3EGcq8xhl6dCj6F gJYNnZkdHEvrQKmQTFqzc3BbivP08IVg57GlumDu9iGsZFI84tT7sCKY/zwg84gS8/ oyveBpO+X+DoUtramch/4WVt8mPmA6qiMEqTQVr0u9pso7MtzzQcPzbpLjRkyTyk2V sQ1UwVpmsFT7KmAKB3OkybeKBTTKLx8Iphq2PL/tO1liBic4bFaTwYcf1xzztuAbn8 xUXvupu08ASi8E3ccqVseDEIShFODZ0VrX1H2JUUsTYoHjN6G1Zt2fOEjA7YEow9dM 8AXxdkqkxWwlw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SSCmH31lcz9rxD; Sat, 11 Nov 2023 12:15:43 +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> <87zfzoebra.fsf@localhost> Date: Sat, 11 Nov 2023 11:17:54 +0000 Message-ID: <87r0kwv8rh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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-Scanner: mx11.migadu.com X-Spam-Score: -7.44 X-Migadu-Queue-Id: 0C6C51646C X-Migadu-Spam-Score: -7.44 X-TUID: 5r5eOW/b8/Gg Max Nikulin writes: > On 08/11/2023 18:16, Ihor Radchenko wrote: >> 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'. > > I am in doubts if it is a bright idea to transform in place passed link > object inside `org-ascii-link'. > I see 2 ways: > - Use ad-hoc object-with-note org-element object instead of `cons' in my > patch (rather cosmetic change). > - Introduce :filter property for links that is called before export > pass. These functions may return arbitrary elements instead of original > links. For ox-ascii a dedicated transcoder for object-with-note is > added. Only custom link types having :export property are processed by > `org-ascii-link'. By "transform", I meant return `object-with-note'. Basically, the second item in your list. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at