diff options
author | Kyle Meyer <kyle@kyleam.com> | 2019-06-21 18:14:49 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2019-06-21 18:15:52 -0400 |
commit | 8e7280896f0a0fb75a72264a799572b457bdf162 (patch) | |
tree | ea58ed89ae99ec505c72f70dd413207e434ea7b5 | |
parent | 1b74ae0ba3e99d05884f3fe91b06a98de2f31490 (diff) | |
download | org-mode-8e7280896f0a0fb75a72264a799572b457bdf162.tar.gz |
org-attach: Bind org-attach-method for org-attach-url
* lisp/org-attach.el (org-attach-url): Let-bind org-attach-method to
`url` so that org-attach-attach calls the correct method.
Before 72124726a (org-attach: Make dispatcher commands customizable,
2019-04-26), the dispatcher masked this issue by let-binding
org-attach-method around its call to org-attach-url.
Reported-by: stardiviner <numbchild@gmail.com>
<https://lists.gnu.org/archive/html/emacs-orgmode/2019-06/msg00130.html>
-rw-r--r-- | lisp/org-attach.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-attach.el b/lisp/org-attach.el index de8b2fc..a715c89 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -419,7 +419,8 @@ Only do this when `org-attach-store-link-p' is non-nil." (defun org-attach-url (url) (interactive "MURL of the file to attach: \n") - (org-attach-attach url)) + (let ((org-attach-method 'url)) + (org-attach-attach url))) (defun org-attach-buffer (buffer-name) "Attach BUFFER-NAME's contents to current task. |