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:
parent
6ea247d79a
commit
adccb81d54
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user