org-attach: Maybe delete heading attachments when archiving
commit1feafbfa99b27d093db18b5423aba8e604e2a0c9
authorEric Abrahamsen <eric@ericabrahamsen.net>
Tue, 14 Oct 2014 01:51:01 +0000 (14 09:51 +0800)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 16 Oct 2014 16:57:39 +0000 (16 18:57 +0200)
tree8fe7f6a6c209c5523a34bacbcdc3747c381ec328
parenta7c72e0de593e77863d68d10e05d392c40b61cda
org-attach: Maybe delete heading attachments when archiving

* lisp/org-attach.el (org-attach-archive-delete): New option
  controlling what to do with attachments when
  archiving.
(org-attach-archive-delete-maybe): New function that runs as a hook on
  org-archive-hook.  Checks the value of `org-attach-archive-delete',
  and behaves accordingly.
lisp/org-attach.el