org-download

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

commit 29d919126fac7277261bce96c99744e35d3c193d
parent 3ba385202b95fe8f36cabcb2b7b0791db70ef585
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date:   Wed, 16 Oct 2019 14:27:27 +0200

org-download.el (org-download-image): Don't message

Diffstat:
Morg-download.el | 10++++------
1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/org-download.el b/org-download.el @@ -414,12 +414,10 @@ It's inserted before the image link and is used to annotate it.") (setq org-download-path-last-file filename) (when (image-type-from-file-name filename) (org-download--image link filename) - (if (eq major-mode 'org-mode) - (progn - (when (eq org-download-method 'attach) - (org-attach-attach filename nil 'none)) - (org-download-insert-link link filename)) - (message "%s" filename)) + (when (eq major-mode 'org-mode) + (when (eq org-download-method 'attach) + (org-attach-attach filename nil 'none)) + (org-download-insert-link link filename)) (when (and (eq org-download-delete-image-after-download t) (not (url-handler-file-remote-p (current-kill 0)))) (delete-file link delete-by-moving-to-trash))))))