From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: attachments in parent Date: Tue, 19 May 2015 20:06:03 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yumpi-0003fA-HW for emacs-orgmode@gnu.org; Tue, 19 May 2015 15:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yumpe-0002fK-Mo for emacs-orgmode@gnu.org; Tue, 19 May 2015 15:05:42 -0400 Received: from plane.gmane.org ([80.91.229.3]:57365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yumpe-0002eX-F6 for emacs-orgmode@gnu.org; Tue, 19 May 2015 15:05:38 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Yumpc-0003A1-59 for emacs-orgmode@gnu.org; Tue, 19 May 2015 21:05:36 +0200 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 May 2015 21:05:36 +0200 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 May 2015 21:05:36 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, Andreas Leha writes: > As it seems, attachments are not found when they are attached to > a parental header. Is that on purpose? > > IMO, it would be nice if attachments would be searched for up the > hierarchy as well. The attachment directory is not inherited, as > it seems. I was reminded off-line that there is a property (`ATTACH_DIR_INHERIT') controlling this behaviour. I have even set that property in the past but only when I had explicitly set the attachment directory as well. Anyway, for future reference here is the MWE again, this time working as expected: --8<---------------cut here---------------start------------->8--- * Example ** Test Attachments :ATTACH: :PROPERTIES: :Attachments: sample_attachment.pdf :ATTACH_DIR_INHERIT: t :ID: B1024BF6-48F1-4300-9D0D-831A410BB40B :END: [[att:sample_attachment.pdf][This]] is found. *** In Subsections [[att:sample_attachment.pdf][This]] is also found. --8<---------------cut here---------------end--------------->8--- Sorry for the noise, Andreas