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:
Ihor Radchenko 2024-06-03 11:08:56 +02:00
parent 0477df8aab
commit 5f050580d8
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 0 deletions

View File

@ -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)