commit b734cc2e9741a2054f1264e6b9e6ae09f59343ae
parent 7f50ea2973e0de8fc4bcec293747449a097c9153
Author: stardiviner <numbchild@gmail.com>
Date: Tue, 2 Aug 2016 19:43:55 +0800
fix org-download-edit link path invalid issue
Fixes #34
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/org-download.el b/org-download.el
@@ -356,12 +356,13 @@ It's inserted before the image link and is used to annotate it.")
(interactive)
(let ((context (org-element-context)))
(if (not (eq (car-safe context) 'link))
- (user-error "not on a link")
+ (user-error "not on a link")
(start-process-shell-command
"org-download-edit"
"org-download-edit"
(format org-download-edit-cmd
- (url-unhex-string (plist-get (cadr context) :path)))))))
+ (shell-quote-wildcard-pattern
+ (url-unhex-string (plist-get (cadr context) :path))))))))
(defun org-download--delete (beg end &optional times)
"Delete inline image links and the files they point to between BEG and END.