1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

ob-gnuplot.el: Honour `default-directory'

* lisp/ob-gnuplot.el (org-babel-expand-body:gnuplot): Do not force
Gnuplot working dir to be `buffer-file-name'.  Trust more configurable
`default-directory'.
This commit is contained in:
Ihor Radchenko 2022-04-21 19:59:09 +08:00
parent 6ea247d79a
commit adccb81d54
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -135,8 +135,7 @@ code."
(timefmt (cdr (assq :timefmt params)))
(time-ind (or (cdr (assq :timeind params))
(when timefmt 1)))
(directory (and (buffer-file-name)
(file-name-directory (buffer-file-name))))
(directory default-directory)
(add-to-body (lambda (text) (setq body (concat text "\n" body)))))
;; append header argument settings to body
(when missing (funcall add-to-body (format "set datafile missing '%s'" missing)))