From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id +Bf/GFewLmZFdwEA62LTzQ:P1 (envelope-from ) for ; Sun, 28 Apr 2024 22:23:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +Bf/GFewLmZFdwEA62LTzQ (envelope-from ) for ; Sun, 28 Apr 2024 22:23:51 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=igWoVLOR; dmarc=pass (policy=none) header.from=gmail.com; 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=1714335831; h=from:from:sender:sender: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:dkim-signature; bh=azlpV11Fj/4N+3Vgg+f1rfWpPCM3TrEIy7LR+NdfccM=; b=kcwpmPAGJ2WIfskHkbfkcU34DEXpF36wmDbqafL3wxIBroAR4NS4xkLDAjqytzTRVapusH B8W2r3zkOjFwiIBt1Kk0ni5TThuVCw/RM9Imt/8fMVTKfMq/EhNkELFJif1diSHB3rZGyk K2RFNs8BGOwpghkxORU7zi1KDQQT06MIFhJyaZSp4pzQpueznVGoQxsvmiJCcJqDJh9EwQ 5hlJDKS2MxpEw3u+eUwJBZb54AKJP7xImQFqbrKlUafRoIxpn2sP1lsuKXx8NoCD4l7HRt 4jfvESqOYRP2i63ok6B2GxyMlqGQ7qzA/9kRsIdv6WgwW7T7wb7rLRkh5dQNjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714335831; a=rsa-sha256; cv=none; b=AQ6esNW+BA5g2AsZhA0uJRzI5NMezN/r+u8Pjgm1TpErH1W82eTwoMxkvc3bvg0o7NcvDd 2fMmdvytP62g6EYrjPOLgjB6jwCMODp6gNf3IZ0suuSVkDklja2HIXh7wZOyrO/4/3A3AI RBMjPU+EO/C7wq8EUR0eaUL6OAOwJN4FQbLi8IDCU1NE2su7CbVXZWa2dRVVsGWSjGVIS4 xozJNyqWj8zlSQebVwLE0hCS4WLUDeR3hjoudiLdZefPgcddcmYn8crdeLU+qA0H6izZ79 yiEhqGqVUdYHoBSPl+fP22y+Lxub67TsRFWe9HWElX6vozKlodVaLYrIDlb7Qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=igWoVLOR; dmarc=pass (policy=none) header.from=gmail.com; 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" 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 1AB263CF1E for ; Sun, 28 Apr 2024 22:23:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1B33-00080q-WB; Sun, 28 Apr 2024 16:22:58 -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 1s1B32-00080e-4h for emacs-orgmode@gnu.org; Sun, 28 Apr 2024 16:22:56 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1B2z-00046O-C2 for emacs-orgmode@gnu.org; Sun, 28 Apr 2024 16:22:55 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1e5c7d087e1so32896865ad.0 for ; Sun, 28 Apr 2024 13:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714335771; x=1714940571; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=azlpV11Fj/4N+3Vgg+f1rfWpPCM3TrEIy7LR+NdfccM=; b=igWoVLOR7vbEyxNybhUP0U0VbdYyH+ur4lb8bENxTnccCwwsr8Z+ngjrpkEZVHq/Pr RZNZWQX0nVD40G+UDHEBD9HJF5sqllpNMlYh2gtPpB16CwyUhbYVIoOT412Y9k7VOhqx BQJzvSE6mqly+hX5yAGtGxBP3U6k7zYx6JNZmDjl1p0HmkVCYOBSWdyAZaKNIW6kwMQF 5eteHNcdjoxLE4sO7t60M2isJPb5R/5V5K3NvyL2feR7CAXVVDGNoVTAWFe1LUHb45mC Z1hm9KqhutRNvhotEwPsxHu39bdFXCa1Pm61B0aIjymgmzqOb5L0uYuw40/58u4flM4q N0CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714335771; x=1714940571; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=azlpV11Fj/4N+3Vgg+f1rfWpPCM3TrEIy7LR+NdfccM=; b=YPbOI8JHRBmqm3XlpDhXq676HmV6G79wngt5BZ2bFgOCDsEBnousODNRZDu/KqkOMl E3AOmf5fqyvvdSxiILAzT6P/zS/hVEy1Bvk1TxCroZBZ2wKoS6uzxWhi4DdqKV0W+ZMN SgCXefXvszPfTTu2E9sQ/UweA8Hgjhb/w2Ru+Xr6WNtah+VqSQDCAIY4YieavOc9uPnP meOW9KNDgF/tpbKC/Vhvz8G1S6A4CJb5IF4dLQndREpFC+g6uoINxP+LPQXF6mYE3A1c 0E23+ID5XPa21F9e23c1+BZ24rm+u4FjgpXEhI1XKR1kd9YJKMiPUp+h4UZnoNb0dRm4 0tMw== X-Gm-Message-State: AOJu0Yxg702ES//vODIWakCwYtcuMU3H0KfYdH51hC/1HzCiG0khrNz6 GC8YUvdiVuiWT1fm9GhBSzo5u6OvIW71mXzCXZdLaUkm1/J7OW2OosCWTg== X-Google-Smtp-Source: AGHT+IEZxnFVGuEAHCNf071rBV1pA4I9yrY6MTWhBNa8RzBxNAGLaz1Cb0EopvC5xyxWtlYrz1mJpg== X-Received: by 2002:a17:902:ce86:b0:1e4:55d8:dfae with SMTP id f6-20020a170902ce8600b001e455d8dfaemr10292495plg.4.1714335771424; Sun, 28 Apr 2024 13:22:51 -0700 (PDT) Received: from localhost ([2600:8802:5726:2500:b790:be97:4efc:207f]) by smtp.gmail.com with ESMTPSA id y24-20020a1709027c9800b001e0d62e077esm18836313pll.247.2024.04.28.13.22.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 13:22:51 -0700 (PDT) From: Karthik Chikmagalur To: emacs-orgmode@gnu.org Subject: [BUG] Attachments not resolved correctly from symlinked Org files Date: Sun, 28 Apr 2024 13:22:50 -0700 Message-ID: <87ttjl8cf9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x62e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Spam-Score: -6.70 X-Spam-Score: -6.70 X-Migadu-Queue-Id: 1AB263CF1E X-Migadu-Scanner: mx11.migadu.com X-TUID: weysfc0Uuab8 Attachment paths are not resolved correctly when the Org file is symlinked elsewhere. This may or may not be a bug, but I think it's undesired behavior: 1. Create an Org file somewhere, say ~/Desktop/test.org. 2. In test.org, create an attachment: `C-c C-a m' as a file. Either the "copy" or "move" attachment method can be used. 3. Symlink test.org from elsewhere, say /tmp/test.org -> ~/Desktop/test.org 4. In a fresh Emacs session, open /tmp/test.org and try to open the attachment directory (`C-c C-a f'). Two things happen: - An empty directory is created, like /tmp/data/48/2697ee-913c-4eee-b1fb-636416d3fb6b - The original attachment can't be found, since it's actually in ~/Desktop/data/48/2697ee-913c-4eee-b1fb-636416d3fb6b Tested with `emacs -q' with Org 9.6.23, and with commit 1ae978f940c0f88473f2232177c63a0de7fb7a1c from two weeks ago. Karthik