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 UGk4Du0sbGbI4wAA62LTzQ:P1 (envelope-from ) for ; Fri, 14 Jun 2024 11:43:41 +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 UGk4Du0sbGbI4wAA62LTzQ (envelope-from ) for ; Fri, 14 Jun 2024 13:43:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ABMAnveN; 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=1718365421; 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=VvH+1l2dpYiX9U3YuQ85qVifSxfoYccQO+LtvPQSxzM=; b=GJaueUIPAPrsFvX1prwzSpTUH80z8DksW2D8haGZVi2STat/1Es8dnoBqjRiOX6EUQ2p0P cnMs+/Yj18OPFWyAkArvPy0jVsN3E/iZVzfqdpFXdovuXr6mlqmPnsGBmPRJqGkziC8dHi hUuNwMy5YqnFaZRDD6MCUBX31wrZsemIWuJ4VEO27tH3TcbcmRafiUVF1AtR7KKMTBcL2q Hb/7/d3J7sSb4d6+y7ExnLnO4jnT40oChPDOentAode5ilmGN5glUUsE8H/1iShsGpPGs4 MtW+KoCbu79DyDyy87JI+N+RyRdp57U84rZXZUTRftpye7m5vaB+RtxuJqX62w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ABMAnveN; 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=1718365421; a=rsa-sha256; cv=none; b=sPl2Kp4XoLxU4peNG2S4Vd+Mk7FiXxWWpFb7BEI1yvc4UZVLSe9zdgg2PnCtyx4Y+cE0BP cAW0p6ia9G+NBhsb1/6/4Wn0jMo+28iZKJI9BbbDerClwGyIW2GfiyQoDJtAIuDnHoS754 GzBdEG/qeu69kJ0LWod+TmIFBnxsV37q99l+VtAh09HT7CC8E5SIqI2IrMBgSf8nSI6C+R tH8oXOjTzC2Odk5fPTK09pXogbEnh0TK+mtT0vU0NbmnW2HkVkEIEHyA2SVRlVgYwhvWob 9oW1q0/B+R8X141TPGwRDfsvoQVOyFQynkbWGCPX1XeM/p5pj+7cF8jRn5faRg== 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 A6DAA7B51E for ; Fri, 14 Jun 2024 13:43:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sI5Kc-0008MI-Rn; Fri, 14 Jun 2024 07:42:59 -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 1sI5KN-0008Ix-0Y for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 07:42:43 -0400 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 1sI5KJ-0006ix-J5 for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 07:42:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 826DE240028 for ; Fri, 14 Jun 2024 13:42:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718365354; bh=xKt26gfFdTGkNFjSa1Im5d8slsl5ETUQBnoVnkyeroA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ABMAnveNNWUbtqsCojMBRIr8VGYG1nMhA4p+wblyjGyeu7RzKZf2ZveeyilhzMlfp EfGhTm7BdqEN0odPXwSQm0YgqZxD5PHPZjotDODfASbMCfdLY/Pt2cxYHwsBudGM6i opIkxQ02uHLw9rqOWD5TUpWDLlTYNhriOp2Gx4fUMpXNw4mjhx6aE3Fl4l9Jjt1QQq J9psRsW+aLzW4e0phedla3QBqdDh4iyBpMyGG6B7Lhfd6kWySNCh3rBWsmuEYAxgTW udbGdvy378Rg8/Z7p+LrrHW/2Gtx/Ml6G6nV9Dx97RpQGU9+gEsblv7o89xL3MvbTF aG2GY7B7FzG3w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W0y7Y42qqz9rxD; Fri, 14 Jun 2024 13:42:33 +0200 (CEST) From: Ihor Radchenko To: Karthik Chikmagalur Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Attachments not resolved correctly from symlinked Org files In-Reply-To: <87mso1oxvs.fsf@localhost> References: <87ttjl8cf9.fsf@gmail.com> <87h6fjz07g.fsf@localhost> <875xvxk1bj.fsf@gmail.com> <87seyydnf7.fsf@localhost> <87mso1oxvs.fsf@localhost> Date: Fri, 14 Jun 2024 11:44:15 +0000 Message-ID: <87frtflpf4.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_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.54 X-Migadu-Queue-Id: A6DAA7B51E X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.54 X-TUID: OVEa18T8TU7B Ihor Radchenko writes: > Ihor Radchenko writes: > >> What about the approach we already use in >> `org-attach-id-to-path-function-list' - check if an attachment directory >> already exists, generated using any rule, and only if not, create a new? >> >> Similarly, in `org-attach-dir', we can first check local attachment >> directory and return it if it exists. Then, we check attachment >> directory for the symlink source, and return it when it exists. >> If none exists, create attachment locally or relative to the symlink >> source, according to some customization. The default will be creating >> locally, to follow the existing behavior. > > See the attached tentative patch. Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1686b6f3b As for creating attachment directories in the symlink source dir, I suggest posting a feature request. Then, we will see if such a feature would be useful for people. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at