Introduce function to create links to attachments.
commit413264882c03af7e9feca4eac959893b50d20e5a
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 5 Nov 2008 16:54:59 +0000 (5 17:54 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 5 Nov 2008 16:54:59 +0000 (5 17:54 +0100)
treed89e5bd08ae5b9867928251a8eb90342ce99257a
parentc4e9626bf4c6c7969628b4171e6dccd90429d600
Introduce function to create links to attachments.

This patch introduces two new functions in org-attach.el,
`org-attach-expand', and `org-attach-expand-link'.  Both take a file
name as an argument, assume that this file is an attachment of the
current entry, and return the full path to this file or a
"file:..." link to it, respectively.

With these functions, it becomes very easy to use link abbreviations
to create a new link type to attachments:

After

(setq org-link-abbrev-alist '(("att" . org-attach-expand-link)))

links like [[att:file.txt]] will work.
lisp/ChangeLog
lisp/org-attach.el
lisp/org.el