From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MA86Dh6zYGOfZgAAbAwnHQ (envelope-from ) for ; Tue, 01 Nov 2022 06:48:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aFYCDR6zYGNaJAAAG6o9tA (envelope-from ) for ; Tue, 01 Nov 2022 06:48:14 +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 EAF032EEF4 for ; Tue, 1 Nov 2022 06:48:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opk7O-0005XS-0R; Tue, 01 Nov 2022 01:47:22 -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 1opk7F-0005X4-59 for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 01:47:13 -0400 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 1opk7C-0004I4-8R for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 01:47:12 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C78EC240103 for ; Tue, 1 Nov 2022 06:47:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667281627; bh=AN7p5mBdeoO7YcgEhpajhRM+ZbZtWn3dXmYBmTkFRdg=; h=From:To:Cc:Subject:Date:From; b=hg7A6WEK/WP5y1LBnYn/YhdicnyREPrrmj7qzxWtEZCQ3UFWZpxrniY3LpwDDgdgV 2NkuKkTg/UdgEBWNQjBsfQ3BW74CqddvXUisKe9dGDGku/gNZzljeeL6SVwGxEtJMQ 42apEWH2GswGkL9dpGKCt7DmB15c62YN1595WDS7zN0xeBil0bN8CHXWAVGXKutkem TLgFrB4T0pYoDooTl0EgAt2bub3Hqu411RoP9pLAtM7eQRgc/Sjc6ZCXM1iIO8FSVx 6ESXPV7jFNcQmLIUSSPZ7PpC3yqWq8bBiIx/loepxpR1RIK9bAPlBiO64Sa/bE2NpA dOhPsKfsEsbJw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N1fDB3w8kz9rxF; Tue, 1 Nov 2022 06:47:06 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: org-export: How to handle links to the exported file? (was: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9.5.2/)])) In-Reply-To: References: <877d0xfu9m.fsf@localhost> <877d0wayn8.fsf@localhost> <87lep97tnn.fsf@localhost> <87ilkc30wd.fsf@localhost> <87ilk0jzab.fsf@localhost> Date: Tue, 01 Nov 2022 05:47:49 +0000 Message-ID: <87fsf3jke2.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: -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_MSPIKE_H2=-0.001, 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+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=1667281694; 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=KCDEHO1Y1QpiQNyCXa9wTmLVUiyhkisg9if2heKjf1M=; b=pNvTyQflmlRV7vjNQr/98FpVd8kG+oKC78Di4THWlpaIR+xqd7wSmCDE5aBzX2gTM9a8ZI hWsARF+coOmA+4Ugd6m/0zSCkP/DpmYv+Z7VbLfqX4qu3F4/Hj3iPH7FoO7G8d2rDA93Te gSFFQc5uhUhXwHmFv1lIopVcFs3Fkamk1SfXsGZQw1pnwtRgqoeWRistAvXTxpxyoO+uFF ZMujC348rIHVbONBvWJIi4LgMA0/1PcZMlS1HYaDktUbKk4dSGq/Z1xv4l1XtS7HahARf6 F0WeCVkVPgF4x3kgsjaTndTewNDeOfm1nRnx5K27tOUNxlIPIREmdOsiAmvPFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667281694; a=rsa-sha256; cv=none; b=QmRT93h8VFUvEagoBA9F8OHkSZ0LyBbzipnS6YLqEbWF3PqQTRYOSy1GpZIPJ6pNo0MvN7 yQtXBFyq76r2dp8CYlKiRO9TpB6ik0tDWePkVI/qrl+cO5CWZ5rWppR56Dozk0C7oObRSa ui13ayCONMGPOXHUujTEh636E46EDbu/9ZKGevwBZgkvToBjdZxfb+6KRWM++8XEuM0oQK wuxw8Zm5At5fxw73+cVPDbdSBHIBCPiYwpoL2HRZGnSjAso/IGxFBnU5QsbfTSkFlTagOa +syr/bRjHS4ctX1PCc+FiTB4HFzcS45dplMcmwE+TvryuPH4uSZ1/QzE9KJyQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hg7A6WEK; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hg7A6WEK; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EAF032EEF4 X-Spam-Score: -2.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2uv3/BwyJmIP TLDR: If we have and Org file with a link point to the same Org file, how should we export it? Max Nikulin writes: > A couple of other notes. > > In HTML top or #top works as a link to the beginning of > the document. I am curious if ODF has a similar feature. I mean ID at > the top of the same file that generates file.org link instead of > internal one for both HTML and ODF formats. Currently, we have no convention. In Org mode: - [[file:/path/to/self]] links will do nothing, or follow org-file-apps. - [[if:document-property-drawer-id]] links will move point to the top What about export? - Should we treat links as file links to the original Org file? (One can argue that it is a good default is one wants to write something like: "This document has been generated from file:/link/to/source.org" - Should we treat them as "jump to top", similar to our id: link behaviour in Org? I'd say that retaining the current behaviour will be the most reasonable. I do not see much utility to linking to exported document itself, while I do see a utility to link to the original file. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at