From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0Em+HW8QYmM1bgEAbAwnHQ (envelope-from ) for ; Wed, 02 Nov 2022 07:38:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SOm1HW8QYmMGlQAAauVa8A (envelope-from ) for ; Wed, 02 Nov 2022 07:38:39 +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 40C82DD63 for ; Wed, 2 Nov 2022 07:38:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oq7Nj-0007ol-2C; Wed, 02 Nov 2022 02:37:47 -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 1oq7Ng-0007oc-MM for emacs-orgmode@gnu.org; Wed, 02 Nov 2022 02:37:44 -0400 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 1oq7Nd-000468-So for emacs-orgmode@gnu.org; Wed, 02 Nov 2022 02:37:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8FA02240027 for ; Wed, 2 Nov 2022 07:37:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667371059; bh=UzmZjbDFr6TvlX613oT9DXpLBWDKMFDkelJOQ2Sm9G0=; h=From:To:Cc:Subject:Date:From; b=Ln9JBV5uK2pfHhs2EK4Ki5rxRLP5DFUzEEybtkbA0StRTx761ikSfM2tQ0YjBBOEx 2VdXH50yWLT5LUUxd8HANHyreMsgqYzyUC0HQhmMqL78bHeS9yekNSpcUkEm7NlLlx rZRXzjA0bt0nPhrJxgNs1gVRS68DwFbHWMswo+5wC5luTcTn+52sFpJAjuyp4erBk8 IAo5Vh0hUAZYsz+nE43M/kbqfjPA4vXSG94BoHlMT4UGM9HeOuExO4dFXCGYCzu9ej 0G8raZ8Z17AKZv7BrVRVjKrSR0CVmkrUDp1il6d67j+5Pah8UrUOJVc3C8xhb4UKLJ hqVMscTst5J4Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N2HJ215XJz9rxG; Wed, 2 Nov 2022 07:37:37 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: [DISCUSSION] Unified handling of links between Org files on export (was: export and cross links between files) In-Reply-To: References: <877d0xfu9m.fsf@localhost> <877d0wayn8.fsf@localhost> <87lep97tnn.fsf@localhost> <87ilkc30wd.fsf@localhost> <87ilk0jzab.fsf@localhost> <87cza7jkdd.fsf@localhost> Date: Wed, 02 Nov 2022 06:38:15 +0000 Message-ID: <87h6zhlv3c.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667371119; 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=xlC/2d42sgTjGongPhjIoMnY+gLUcyx4ilNKyg208fs=; b=f2LyLf44+sk+483opbZro+sVd14jjMDfBjwatFmswlnJXXl8kUGFbsQM6jEiH0wE8y6p93 3k+1UACkRP7ZxOcjmXyWRTxm6Zx92epOjEquNChw8UsjMC0vPhBr7mTu7czNL2oM+nVE7I s3olcESiyP+UxcPsX+1amb1ENMuph82gcix+52SBgVRkn0JjieLtYwLhOp5cBfWMkfGm7S GHg/5gRQWxFT6eJEjZGYTCKgaAo8POCh8TJMJSoU4qXqDOuclfHVBYhf2jJarI62tLYtwo C5JIo7HvqdmcWCu3QyOAHZs1aXgNhdTLO/VEZhO9m6OUfgXjWHM89UEaFEcsQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667371119; a=rsa-sha256; cv=none; b=K1f5xgUE+fgtBivSHeTGtk4TNhwUoKYCaCv3qulof+8Ye1yBdyK80K8KVdTdzQlZF3J+Mv u+CPFxdT/8jP5unT8+NNFFJseNqLttDdMnmHoalioJJ4QvXI4ojXEIXIX8m4iHYr+yEyfU RL0Rz42Nb7ktyOZ/U2/Mf9OiAjF+gFE0mBwZrEfHkQvnNfNtC1b9YiorbLM/2pI2YxC9VB a7J6AzpK4yBhjeNUULWWOckw1w2vxZd0KrJJDsIFsyQERoiLECOA1R13HML1RiFBZdDUw8 icOVtgyZcPnV2tHCpjFjUleFHYEC3nvws+YbqR2gtbwz8SdyuHOpvnX8/WyyTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Ln9JBV5u; 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" X-Migadu-Spam-Score: -3.48 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Ln9JBV5u; 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" X-Migadu-Queue-Id: 40C82DD63 X-Spam-Score: -3.48 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ux8iM5N83Olq Max Nikulin writes: > On 01/11/2022 12:48, Ihor Radchenko wrote: >> Max Nikulin writes: >> >>> It seems org-id.el should be extended to handle some features common to >>> all formats such as custom suffix instead of ".org" >> >> Could you please elaborate? > > Currently ox-html has an option to replace links to .org files with > links to exported .html files. I suppose, this option should be > generalized to other export backends. It is up to user to set > appropriate target format to get cross links between exported files. Some export processors (like ox-texinfo) can export to multiple output formats. A simple defcustom will not cut it because one may want different link transformations depending on the issued export command. I am not sure if there is a clean generalized way to implement link transformations on ox.el level. Individual backends may support this better. I guess a possible somewhat generic solution could be adding a new key to org-export-define-backend and org-export-define-derived-backend. Specifically for transforming links to other org files. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at