lisp/org.el (org--dnd-attach-file): Load org-attach
This is necessary to make sure that `org-attach-method' variable is available.
This commit is contained in:
parent
0477df8aab
commit
5f050580d8
|
@ -20889,6 +20889,7 @@ The action `private' is always returned.
|
||||||
|
|
||||||
SEPARATOR is the string to insert after each link."
|
SEPARATOR is the string to insert after each link."
|
||||||
(require 'mailcap)
|
(require 'mailcap)
|
||||||
|
(require 'org-attach)
|
||||||
(let* ((filename (dnd-get-local-file-name url))
|
(let* ((filename (dnd-get-local-file-name url))
|
||||||
(mimetype (mailcap-file-name-to-mime-type filename))
|
(mimetype (mailcap-file-name-to-mime-type filename))
|
||||||
(separatep (and (string-prefix-p "image/" mimetype)
|
(separatep (and (string-prefix-p "image/" mimetype)
|
||||||
|
|
Loading…
Reference in New Issue