* attachments in parent
@ 2015-05-19 13:39 Andreas Leha
2015-05-19 19:06 ` Andreas Leha
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Leha @ 2015-05-19 13:39 UTC (permalink / raw)
To: emacs-orgmode
Hi all,
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.
Here is an example illustrating my question (you'll have to
attach something yourself to make it work, though):
--8<---------------cut here---------------start------------->8---
* Example
** Test Attachments :ATTACH:
:PROPERTIES:
:Attachments: sample_attachment.pdf
:ID: B1024BF6-48F1-4300-9D0D-831A410BB40B
:END:
[[att:sample_attachment.pdf][This]] is found.
*** In Subsections
[[att:sample_attachment.pdf][This]] is not found.
--8<---------------cut here---------------end--------------->8---
Regards,
Andreas
PS: the relevant part of my setup:
--8<---------------cut here---------------start------------->8---
(require 'org-attach)
(setq org-link-abbrev-alist '(("att" . org-attach-expand-link)))
--8<---------------cut here---------------end--------------->8---
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: attachments in parent
2015-05-19 13:39 attachments in parent Andreas Leha
@ 2015-05-19 19:06 ` Andreas Leha
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Leha @ 2015-05-19 19:06 UTC (permalink / raw)
To: emacs-orgmode
Hi all,
Andreas Leha <andreas.leha@med.uni-goettingen.de> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-19 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 13:39 attachments in parent Andreas Leha
2015-05-19 19:06 ` Andreas Leha
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.