org-download

a fork of abo-abo's org-download
git clone https://git.trogloxene.org/org-download.git
Log | Files | Refs | README

commit 92aae5d04eb649f83e1af2785d12e199d349c416
parent 6f37cfa8f856fa3227df8a62d1272573f222e3b1
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date:   Thu, 29 Oct 2015 14:34:40 +0100

org-download.el (org-download-delete): Update attachments

* org-download.el (org-download-delete): Call `org-attach-sync'.

Fixes #27

Diffstat:
Morg-download.el | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/org-download.el b/org-download.el @@ -344,7 +344,9 @@ It's inserted before the image link and is used to annotate it.") (region-end))) (t (org-download--delete (line-beginning-position) - (line-end-position))))) + (line-end-position)))) + (when (eq org-download-method 'attach) + (org-attach-sync))) (defun org-download--delete (beg end &optional times) "Delete inline image links and the files they point to between BEG and END.