lang/org: fix drag'n'drop in org-mode #307
Caused by references to long gone functions.
This commit is contained in:
parent
0a9a992e81
commit
06e76c8f49
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue