summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-07-31 00:45:41 +0100
committerjao <jao@gnu.org>2021-07-31 00:45:41 +0100
commitced72fe6f852e887223e36b016ea190ad007c34c (patch)
treecb39bc63161c9027b6efe86da00936a0d1494aaa /lib
parent034563ad6f0d95e5363ca249ba46ffc2eb1eee98 (diff)
downloadelibs-ced72fe6f852e887223e36b016ea190ad007c34c.tar.gz
elibs-ced72fe6f852e887223e36b016ea190ad007c34c.tar.bz2
jao-org-notes: emacs knows how to move files
Diffstat (limited to 'lib')
-rw-r--r--lib/doc/jao-org-links.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/doc/jao-org-links.el b/lib/doc/jao-org-links.el
index 73c24b6..dd183e1 100644
--- a/lib/doc/jao-org-links.el
+++ b/lib/doc/jao-org-links.el
@@ -39,7 +39,7 @@
(real-file (if (file-exists-p sink-file) sink-file
(read-file-name "Import file: "
jao-org--sink-dir link link))))
- (shell-command-to-string (format "mv %s %s" real-file dest-path))))
+ (rename-file real-file dest-path)))
(if (jao-doc-view-is-pdf dest-path)
(jao-org-links--open-pdf full-link)
(browse-url (format "file://%s" (expand-file-name dest-path))))))