From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QF1CFnJ+cGaBhwAA62LTzQ:P1 (envelope-from ) for ; Mon, 17 Jun 2024 18:20:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QF1CFnJ+cGaBhwAA62LTzQ (envelope-from ) for ; Mon, 17 Jun 2024 20:20:34 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eFCpQpEM; 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=1718648434; 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=zt/VEPabF3qNwDA3AEToH758S8LvWDTKr0xE33SE3zo=; b=PlgQIwrMlWPaXExZhgcTevA25VfqB2/1lxiRXuHQj6TYm6SblimtDUmqMQeLubz8bIAint Bw58YzoiqEE5252boY088r9E1sT+LFS98WWnYefMrFp2UHTHQgeRZY8guT0GAC1CcgFdQ/ 6XXGe8DSCpAux9Grne5fGTMnPVpiuUbbe24IRBaHSvXO1QHDT32bkof4/ZwJ0bo7fLSSzD boio/8BCfQi7zgCwbYj86NAcKrYw1j1VxkreO21QFafbLJ1vOfoLGD/CxnzNAEunz1qa9H fdBmXam/yQy4Vx4YJqgAZsR7/V/t+KQSyjXG3ZocZgk0JRUQcwPq/sz+HLammQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eFCpQpEM; 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=1718648434; a=rsa-sha256; cv=none; b=Q290rIT0BhdcYEU6i42hRt1n/vsaRNIlfPWdMXrf8B8s3qYsobc7CrCFLb/2Vn8UFC4oh0 SlU5ilEdp/jgqJoTHRtZwee00ekGZMOB+EuMbQVViHbfJy9rKhlA+CAsloy4Qos+i7IQsW sCh4UXOxuwYhk4oDA4LQ1vwQCSfi7VPXzS1nbmN6NmdzcdgCsmNgzO+nvf4A1GBeTX26ZF IxaBZQSQpFYrRE5VbZCHGL1PEpW2cYsHYf2lBtFRyHVZSjUSKrc08Ym4j4AluXzP3lcUL2 ID7MUr6fxFZ44q/doqi3psQuvrrSsQSfW7r/9jgH3FUkOsxY5J0npX8v49w/Fg== 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 0DAFBB8B8 for ; Mon, 17 Jun 2024 20:20:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJG6W-0004rH-CR; Mon, 17 Jun 2024 13:25:16 -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 1sJG6U-0004r9-OV for emacs-orgmode@gnu.org; Mon, 17 Jun 2024 13:25:14 -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 1sJG6S-00068A-FM for emacs-orgmode@gnu.org; Mon, 17 Jun 2024 13:25:14 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 55B0D240101 for ; Mon, 17 Jun 2024 19:25:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718645109; bh=H756iUDwQByIC7iI2lR/f0TrCw2vg9vbMzTGAJQC70w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=eFCpQpEMcN2/x3dvRbYw8j5XUo9kwLfSoizxknss+RHPp49NE/kUilGLGswvflLlJ I6pYObZRGXN6iVewvzUbo5Y8ZVrFZwEguJUbRIMp/Z4V6ioRV+6vd9ea6ohYnFW1kI 1K6n257W0rnRYOGjYADyY1R7bQHdhGT8U09j6nnoR+p3UKVs49EM0laVbY3+WTJdjU c30uulH8U2brQcikugJH+4qhYnHzf4gkCsBFhX/epuTCvrTplm03bAkmW0lHvB+4JN 36yav3Tr+ZuXbsaiSswA5ppnKGi7kLTAaLoWals5r0UKU9dFhbJpF9TuUMmF8FphrV 8knAxlrMZm3rQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W2xbS6xn9z6twn; Mon, 17 Jun 2024 19:25:08 +0200 (CEST) From: Ihor Radchenko To: Al Haji-Ali Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-refile-get-location a symlinked file [9.7-pre (release_9.6.29-1443-gb4d17c)] In-Reply-To: References: Date: Mon, 17 Jun 2024 17:26:53 +0000 Message-ID: <87sexba3aa.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, 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.37 X-Migadu-Queue-Id: 0DAFBB8B8 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.37 X-TUID: +rgA0a1xf3ts Al Haji-Ali writes: > I have `org-refile-use-outline-path` set to t, expecting that when refiling, the filename should not appear in the list. However, because I am opening an org file using a symblink and I have `find-file-visit-truename` set to `t`, the test > > `(not (equal filename (nth 1 x)))` > > in `org-refile-get-location` always fails and the filename is displayed even when the current buffer and `(nth 1 x)` point to the same file. If I replace this condition by > > `(not (equal (file-truename filename) (file-truename (nth 1 x))))` > > The filename is not added to the list of refile targets as I would expect. Makes sense. May you prepare a patch with the proposed change? See https://orgmode.org/worg/org-contribute.html#first-patch -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at