From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Bug: (org-attach-dir) doesn't honor ATTACH_DIR_INHERIT Date: Mon, 22 Feb 2010 13:00:02 -0500 Message-ID: <87y6ilcfrx.fsf@fastmail.fm> References: <51b0095d1002211435w10561193yfd2dd49934b261a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjcZQ-0000Kz-Ew for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 12:59:48 -0500 Received: from [140.186.70.92] (port=42825 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjcZK-0000H5-UK for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 12:59:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjcZK-0004rc-0F for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 12:59:42 -0500 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:42796) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjcZJ-0004rP-T1 for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 12:59:41 -0500 In-Reply-To: <51b0095d1002211435w10561193yfd2dd49934b261a@mail.gmail.com> (Nicolas Girard's message of "Sun, 21 Feb 2010 23:35:45 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Girard Cc: emacs-orgmode Nicolas Girard writes: > given the following test document, calling (org-attach-dir) when in b > should give '/tmp' ; currently the result is nil, which breaks C-c C-a > f. > > Cheers, > Nicolas > > ======= > * a > :PROPERTIES: > :ATTACH_DIR: /tmp > :END: > ** b > :PROPERTIES: > :ATTACH_DIR_INHERIT: t > :END: The :ATTACH_DIR_INHERIT: property needs to be set in the parent tree, since that is the heading whose attach directory is being inherited. --8<---------------cut here---------------start------------->8--- * a :PROPERTIES: :ATTACH_DIR: /tmp :ATTACH_DIR_INHERIT: t :END: ** b --8<---------------cut here---------------end--------------->8--- With this structure, calling (org-attach-dir) beneath the "b" heading results in "/tmp". Best, Matt