From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 eBG6G+nSp2WmtQAAe85BDQ:P1 (envelope-from ) for ; Wed, 17 Jan 2024 14:15:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eBG6G+nSp2WmtQAAe85BDQ (envelope-from ) for ; Wed, 17 Jan 2024 14:15:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=edfZ5Esy; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705497321; 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=6D0uE+hPt2CaAv1TCs0Kla9AuKps4NVH7yz9YD85oPA=; b=kwGEYmLTJkAtbU5U7wZzaBK1Y4vO2ngBQaWNNpllKGj5wodyfUN6bNnQuE3tbEfWEyG8MF e8QSUgcmNAbccVD5mBb6HUeZNyquN/HXgPr5XsQoUG/JD7gI3dUFX8hREUsvuPDWxLXzVp OL4DVZSvjH7Pdz1Ny0qy4ek2Q0UCGuXQ5o7uXKbdC2zRa9pD44OKjskusHMQMg4qUQVd3A rr6TAlAoSlOqXb0ywNvl1MjXZB5Ygpq1latUgafOMdk0hoPhKEZY6m+aw4aywevy47+d+G qcyRLXDd60IA0JNfpcBzUgV74RIS2ydaPC02jNhd56J85gE98OW7ZP/oR37A8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=edfZ5Esy; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705497321; a=rsa-sha256; cv=none; b=IwOzfx1B9EVh6gGuUXhMjK+nnp9qL49z/QM47lXo5FwTzFTE+dbntRDov1iKiK07zxoRFA fcmT0H+UdVSJGbcq+CinvrJg1HADLNOvmxIyBAGscobbyVKxurl3SHxwqwYfT0HxVUygrB +Ie5U01LaMA7Hbu9LiGhxHrZ8tJHMVfSN7ZKS8jFN/2K1HSYgXizrMvCKqsaH0CfHcoNNH PsHY9hn/nh6vUz3tSJc3mD1phwotjA5qUgPbqwER3A9NVpSO62QwcaOdwrgKhLHPIaACqx aoiMYyv4LAIVn4gWt5aJfZSHrx52qhxRKh1+xPT9ac4ns8YIODAwk3XW4ea2Ig== 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 45D3A5977F for ; Wed, 17 Jan 2024 14:15:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQ5km-0002eF-B3; Wed, 17 Jan 2024 08:14:48 -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 1rQ5kj-0002dl-Un for emacs-orgmode@gnu.org; Wed, 17 Jan 2024 08:14:46 -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 1rQ5ki-0000PZ-7o for emacs-orgmode@gnu.org; Wed, 17 Jan 2024 08:14:45 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 648BE24002A for ; Wed, 17 Jan 2024 14:14:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705497282; bh=S7gtn+AhoqFAYCFmVoJoEqOB2tepruu4XMsUTfyPO8s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=edfZ5EsyFcWBI1JLZk3LO/bp+kwfXWjTdWpt329C9sPan/2XkpSupjKFmrnRLIQma RpBPxJEfIrXIVgZk/rSAYALIfsE40lAd8NgUH39g9hZOu4cd4zBEeN2215Lv+44THW sXMV8WX7WfoT9GjOAimbErLUr1IExEWPcLsbeJ+qUrtHvRLcmVBgFHpo77NtGCugwK 0tZbaHEd7YsEKl/MeEq1t0ZOF0sxWB7Qmk4eISMW5ck4i19UavpHH7gBDn1XqqA2Kc 6fuWh9qrYR8qhxpo3xXugkAG+HIXBEIQ54VtxViGYvnTYafQmw8VTs7w2rlIPWjI3h Pm50b55ss7JpA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TFRDd544rz6txN; Wed, 17 Jan 2024 14:14:41 +0100 (CET) From: Ihor Radchenko To: numbchild@gmail.com Cc: =?utf-8?B?6KW/IOmhvg==?= , emacs-orgmode@gnu.org Subject: Re: [POLL] Change calling convention for when `org-link-file-path-type' is set to custom function (was: Enhancement Proposal for 'org-link-file-path-type' Behavior) In-Reply-To: <65a75fd5.170a0220.b5db2.7472@mx.google.com> References: <871qahl0un.fsf@localhost> <65a75fd5.170a0220.b5db2.7472@mx.google.com> Date: Wed, 17 Jan 2024 13:17:56 +0000 Message-ID: <87r0ighzej.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-Spam-Score: -8.56 X-Migadu-Queue-Id: 45D3A5977F X-Spam-Score: -8.56 X-Migadu-Scanner: mx11.migadu.com X-TUID: udOWauZVDsGL "Christopher M. Miles" writes: > I have one situation need this feature. > > Assume a file structure like bellowing: > > #+begin_example > `- folder-1 > `- file-1.org > `- folder-1.2 > ` file-1.2.1.org > #+end_example > > When I try to add link of "file-1.org" in "file-1.2.1.org", based on my > custom option `org-link-file-path-type' value `adaptive'. The link will > become a full-path link. But I want link to be relative to current Org > file path. The file link path should be [[file:../file-1.org]] instead > of [[file:folder-1/file-1.org]]. I hope I can use a custom function in > conditions to decide the file path. I think that you do not need to wait for this feature in order to get what you need. Just examine default-directory in your custom function to determine whether to return relative or absolute path. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at