mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: fix drag'n'drop in org-mode #307
Caused by references to long gone functions.
This commit is contained in:
@ -78,7 +78,7 @@ the cursor."
|
|||||||
(defun +org-attach-download-dnd (uri action)
|
(defun +org-attach-download-dnd (uri action)
|
||||||
"TODO"
|
"TODO"
|
||||||
(if (eq major-mode 'org-mode)
|
(if (eq major-mode 'org-mode)
|
||||||
(+org-attach:url uri)
|
(+org-attach/uri uri)
|
||||||
(let ((dnd-protocol-alist
|
(let ((dnd-protocol-alist
|
||||||
(rassq-delete-all '+org-attach-download-dnd
|
(rassq-delete-all '+org-attach-download-dnd
|
||||||
(copy-alist dnd-protocol-alist))))
|
(copy-alist dnd-protocol-alist))))
|
||||||
@ -113,9 +113,9 @@ the cursor."
|
|||||||
(t
|
(t
|
||||||
(insert
|
(insert
|
||||||
(format "%s [[./%s][%s]] "
|
(format "%s [[./%s][%s]] "
|
||||||
(org-attach--icon filename)
|
(+org-attach--icon filename)
|
||||||
(file-relative-name filename buffer-file-name)
|
(file-relative-name filename buffer-file-name)
|
||||||
(file-name-nondirectory (directory-file-name rel-path)))))))
|
(file-name-nondirectory (directory-file-name filename)))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org-attach*relative-to-attach-dir (orig-fn &rest args)
|
(defun +org-attach*relative-to-attach-dir (orig-fn &rest args)
|
||||||
|
Reference in New Issue
Block a user