lisp/ob-gnuplot.el: Use `org-babel-local-file-name'

* lisp/ob-gnuplot.el (org-babel-gnuplot-process-vars): Use
`org-babel-local-file-name'.

TINYCHANGE
This commit is contained in:
Ihor Radchenko 2021-05-01 16:32:27 +02:00 committed by Bastien Guerry
parent c1a5f5c155
commit c7de815c5a
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ code."
org-babel-temporary-directory
"/gnuplot/"
(file-remote-p val 'host)
(file-local-name val))))
(org-babel-local-file-name val))))
(if (and (file-exists-p local-name) ;; only download file if remote is newer
(file-newer-than-file-p local-name val))
local-name