From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OLPND0edt2YLCwEAe85BDQ:P1 (envelope-from ) for ; Sat, 10 Aug 2024 17:03:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OLPND0edt2YLCwEAe85BDQ (envelope-from ) for ; Sat, 10 Aug 2024 19:03:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; none 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 319461565A for ; Sat, 10 Aug 2024 19:03:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scpUD-0008Ci-8R; Sat, 10 Aug 2024 13:02:37 -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 1scpUB-0008By-Ba for emacs-orgmode@gnu.org; Sat, 10 Aug 2024 13:02:35 -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 1scpU6-0005yD-9r for emacs-orgmode@gnu.org; Sat, 10 Aug 2024 13:02:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8F84F240101 for ; Sat, 10 Aug 2024 19:02:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723309347; bh=LhZhcQVZ1TxPLnGx/ytveCbUG68AMkf+6ZQWLzddcPg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=p9aBahW+5TYdxDFbKFIYQ2pI4NnREHNTycKb3xVhgvEymlbnjITFDvjMTWqqrBsOy Fxl+OOQ1Ec2YfhSNmWF18oboTLaE7WJFbIy7PXeZBbdQSalHP5BAV0yJx1llipf5uU nwzCUBtHlc8OeURX1lNN5lkLP4xMuB90DsvCNUWcVTrkmAWgVZJoBwYlTgWD7KEoIM n7TFFEC0FetwCkMY88j13Wfo19CMwQVXRuob6G2vhpI95DIOU2Eqys7wP61sm9VHIK iKSTReOr3UkSfsuQMmrbfQEdMdnxvE2/8DeMZ3Q/BNNOM4K3xT8NbDHSyMe3iwrtH8 q9TDy75U8Ip4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Wh6XM0wVZz6tmv; Sat, 10 Aug 2024 19:02:27 +0200 (CEST) From: Ihor Radchenko To: Wiktor Kwapisiewicz Cc: emacs-orgmode@gnu.org Subject: Re: Question about relative paths generated by Org In-Reply-To: References: Date: Sat, 10 Aug 2024 17:03:38 +0000 Message-ID: <87h6bs71jp.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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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: , 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-Queue-Id: 319461565A X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.00 X-Spam-Score: -4.00 X-TUID: qsnMlO4OapFO Wiktor Kwapisiewicz writes: > One thing bothers me: the links generated by the ":link t" option on the > clocktable [0] are absolute [1] and it causes problems when using the > same file on two different machines: > ... > I've tried adjusting that with `(setq org-link-file-path-type > 'relative)` but it doesn't seem to have any effect on the automatically > generated clocktable (I ran emacs -nw README.org so the PWD should be > correct). > > Is there anything I could try to make the links relative so that they > look like this: [[file:README.org::Task 3][Task 3]] ? Absolute file path is currently hard-coded in `org-clock-get-table-data'. I agree that it would make sense to respect `org-link-file-path-type'. Someone has to factor out link path format from `org-insert-link' and re-use it. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at