From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 UK20L3wDSmUDFAEAG6o9tA:P1 (envelope-from ) for ; Tue, 07 Nov 2023 10:29:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UK20L3wDSmUDFAEAG6o9tA (envelope-from ) for ; Tue, 07 Nov 2023 10:29:32 +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 40FC343E1B for ; Tue, 7 Nov 2023 10:29:32 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PEuOWO5X; 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=1699349372; a=rsa-sha256; cv=none; b=J8tdpIjQsAVtEgfs3EStJYe0kPb3h92kfUsnnVnKf4fqf3B3am1yofKmcIRcAqtscTShf8 wJ+axKeJa431cEFSJEVtckb1qHaJmXj1exomXLUnwyLzXp6WAoTGhqe++WmN3Zqw7rLOcX AkK4B/W0erHFETLeMvfzAXeG6mBQ+gp6T7kgiyJmllDolOATg9mZcS/viw7APBJwMzWyeg BqR6ucHs13A2ncCSHSt9Z1W1K9twVTA9Padv1ke62x3VIHIoSsYvSezTTWUo6lZbmLihjY i+fpL9MJiAfZJTvZ1hEbxlGtNwgzcgwM7xLn8/ILeD5uXw5PkQ55OZyxs9XiNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699349372; 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=J6/08lhpVdgg3bNLCH8MT0SftVQlf1GxcjF+N61128E=; b=PX9BG7NdqeH0yQ33umlj/ZUn0mGzJ1qkeKmDeidLYcxlLEmIkZYbvvVWzjWNX0I/rzVXwg X1MpARzfnxzkmOXJXvfBfgXFDwtMBfKK2vubuMCwrNjrcY+DHQ6upXGJwFphlboslnp7Wb JkuRQa26Xu9DRVFpBOavMZw3B4WraCZFOJrMsY9IAoXf/W+KdH+Ko2MaPyKWBZl+aR/NbM u31Qtyrbvd5XPlVUJQPej5Sk1aJJCW+vZEPyvp7qQod9BSQIe+IUc5KrrKVAzgUmfZjCw/ D20ZY3N0GDcYOFq/LuUk0B4TObHGcQCZBosAWWoowaal53FAc1S+iBl4WvKiwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PEuOWO5X; 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 1r0INx-0001nx-Iv; Tue, 07 Nov 2023 04:28:37 -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 1r0INu-0001ms-MD for emacs-orgmode@gnu.org; Tue, 07 Nov 2023 04:28:34 -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 1r0INs-0002oH-Db for emacs-orgmode@gnu.org; Tue, 07 Nov 2023 04:28:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2A3BB240027 for ; Tue, 7 Nov 2023 10:28:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699349309; bh=N2ctwOLLFdv0C+OSAwXZGetxk62x3+/wTi+bKnUqk8E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=PEuOWO5XZzNAOx/4BnwsZWd8RGoO3U/bYUEIHND48yalddep64HOJw25Rx2YT8S90 oodtomu/PCmD9d9Vrr1IZ2dIxVPWZwf7iaNoMTngAeeL0J8LbxAKhb0AWKwrfKfPog /1qPfhFmuQTmE4RmENvfJvXizk7pZCaOqooVfdydL9lt0mmO1IsJfGYEBVBhzFyc48 tNEHg8i16CP/3h7KTThMmcF27Nz73tDYE02XOxUxFJ/tiL485Ixu1eBMjomrbbfe7l nuAreDopR5TIldXWym6sA7bqq1XhZNv0XPN72aM4sGaZFprQ4Ifss4mG/MvKAjdX11 sl4iadVsx6LpA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SPjZN0SGSz9rxK; Tue, 7 Nov 2023 10:28:27 +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> Date: Tue, 07 Nov 2023 09:30:25 +0000 Message-ID: <87v8ad29n2.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-Scanner: mx11.migadu.com X-Spam-Score: -8.66 X-Migadu-Queue-Id: 40FC343E1B X-Migadu-Spam-Score: -8.66 X-TUID: NkT0CZsyHNPR Max Nikulin writes: > `cons' is made an implementation detail, however completely opaque > structure is an obstacle for derived export backend. Perhaps getter > functions should be introduced as well. I am looking at this again and the approach with special return values really feels like a kludge. What about passing an extra argument to :export function in `org-export-custom-protocol-maybe': (funcall protocol path desc backend info *link-object*) Then, if the :export function returns non-string, the return value is further processed as (org-export-data *return-value* info). This way, we can transparently return an https link in ol-man's `org-man-export' that will be handled automatically taking into account the ASCII inline note settings. All the existing export backends will continue working without modification. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at