From 5f050580d847036ab8902f42e8306e1540df2c89 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Mon, 3 Jun 2024 11:08:56 +0200 Subject: [PATCH] lisp/org.el (org--dnd-attach-file): Load org-attach This is necessary to make sure that `org-attach-method' variable is available. --- lisp/org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org.el b/lisp/org.el index d941bae41..0bde18397 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -20889,6 +20889,7 @@ The action `private' is always returned. SEPARATOR is the string to insert after each link." (require 'mailcap) + (require 'org-attach) (let* ((filename (dnd-get-local-file-name url)) (mimetype (mailcap-file-name-to-mime-type filename)) (separatep (and (string-prefix-p "image/" mimetype)