From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WED1JlmqIWTQYAAASxT56A (envelope-from ) for ; Mon, 27 Mar 2023 16:38:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OKvxJVmqIWQIXAAAG6o9tA (envelope-from ) for ; Mon, 27 Mar 2023 16:38:17 +0200 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 51A943A8D2 for ; Mon, 27 Mar 2023 16:38:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgnyO-0002Bn-74; Mon, 27 Mar 2023 10:37:24 -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 1pgnyD-00029p-RT for emacs-orgmode@gnu.org; Mon, 27 Mar 2023 10:37:14 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgnyC-0004E3-7m for emacs-orgmode@gnu.org; Mon, 27 Mar 2023 10:37:13 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 84826b19 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 27 Mar 2023 14:37:10 +0000 (UTC) To: emacs-orgmode@gnu.org Subject: [FR] Do not resolve relative "file" paths Date: Mon, 27 Mar 2023 22:36:48 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679927897; a=rsa-sha256; cv=none; b=qUG0b2yCxoIiIMdCsiHxShIOfxdKyvKJFP99giXBNJYOEAlXEcJtS0UcD9e1/SmGP+W4as jf4ZfVIlyySvu7s3EGAJrCaRZR5kAvRj339xheDxaMTYJaOVkS5dRXTldpxNi+hBRywwwR zvJq+UHQ1uk1B8mUoXu0cQPcpoUJDJZEWyGoU1sfm1pTHLHWk0fnEVIYRyf+MHW4Shu7sl MOSVLCNuJqqC/ImQwkwuEn22gMNx2aXQTS/6QpXE/GeOSC1YspBO277Cji+qYLUzqkhySO 0nUtCOzpph9W7iFvkPz9tssnnEpfrZ8xzboBt3nthdqownHXkdES16R7DmE6yQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679927897; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=uje/o/hbY7sms1DWhbVr1q+pV6CgGkD0y/8CdcICrCw=; b=rCHukVOd5VE8Qc4wBA/lqSzuPKTHSfGNdl8a1g68oOCy/5trdjouj66/aXjLFEzoZF5q3T NI5tw1tA6XwNVxiX4EA6xSCvwZ+tsAHopJI7fq4zveBNvqcXecBuA/ks72hPnX3TwKL5ZT iN7zvHxSaEM/hpR6f+YjWXQdn2Hz4nU+/4USx5dgImHo/y+FESznkj4CEa8hdWoc4+mmZF sPlPpWlnk4CiCIlra3wVQx7rbI4FZg4OywZbeUt8k8dV9O0DWd2RVTDVPlqzu6GQyHoF+l nIUX8rD8C/uGMQ0Ru0wpXs075QJaED/ST5zxYW7OMALK2Q+eCQ6YHj4c3mgcBw== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.53 X-Spam-Score: -3.53 X-Migadu-Queue-Id: 51A943A8D2 X-TUID: UhCnaQln28ya Both Emacs and Org are on recent master commits. Repro: --8<---------------cut here---------------start------------->8--- $ cd $(mktemp -d) $ mkdir 1 $ touch 2 $ emacs -L /org/lisp/ -Q 1/3.org M-: emacs-repository-version RET "db7e95531ac36ae842787b6c5f2859d0642c78cc" M-x org-version RET Org mode version 9.7-pre (release_9.6.1-321-g44e1cb @ /opt/src/emacs/packages/orgmode/main/lisp/) C-c C-l file:../4 RET RET [[file:/tmp/tmp.ztrbRDDtKy/4]] C-c C-l file:../2 RET RET [[file:/tmp/tmp.ztrbRDDtKy/2]] --8<---------------cut here---------------end--------------->8--- Note that I showcased both ../4 and ../2 because it seems that the referenced file does not need to exist. I expect the links to be literally [[file:../4]] and [[file:../2]] respectively. This is helpful for me to reference other files relatively (e.g., in a repository). For example, since I am working on translating orgweb to zh_CN, I have /zh_CN/index.org referencing /resources/img/xyz.svg, where after I do `C-c C-l file:../resources/img/xyz.svg RET' inside /zh_CN/index.org, Org resolves this link to an absolute path which is counterproductive and does not work beyond my own computer. -- Best, RY