Explorar el Código

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'.
Ihor Radchenko hace 2 años
padre
commit
adccb81d54
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      lisp/ob-gnuplot.el

+ 1 - 2
lisp/ob-gnuplot.el

@@ -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)))