Allow to store a link in `org-stored-links' to a newly attached file.
commit85d4d65af092e09bbf9dd11dad7c1f475ef56f55
authorBastien Guerry <bzg@altern.org>
Thu, 3 Mar 2011 10:17:55 +0000 (3 11:17 +0100)
committerBastien Guerry <bzg@altern.org>
Thu, 3 Mar 2011 10:17:55 +0000 (3 11:17 +0100)
treedefc0013c466ac0c8d5a6d55d97a9530dfcf05a0
parentdc60852d24b16555466214712181351e11b68e7c
Allow to store a link in `org-stored-links' to a newly attached file.

* org-attach.el (org-attach-store-link-p): New variable.
(org-attach-store-link): New function.
(org-attach-attach): When `org-attach-store-link-p' is
non-nil, store a link in `org-stored-links' to a newly
attached file.

Thanks to Darlan Cavalcante Moreira for this idea.
lisp/org-attach.el