mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-22 07:09:47 +00:00
org-plot: Expand file name of output image
* lisp/org-plot.el (org-plot/gnuplot-script): The gnuplot process this generated content is sent to may be operating in a different directory, and hence this may write to a different file than intended. By expanding the file name first, this is no longer a concern.
This commit is contained in:
parent
73a96c63a9
commit
2c22bba4a2
@ -570,7 +570,7 @@ manner suitable for prepending to a user-specified script."
|
||||
org-plot/gnuplot-term-extra
|
||||
(funcall org-plot/gnuplot-term-extra type))))
|
||||
(when file ; output file
|
||||
(funcall ats (format "set output '%s'" file)))
|
||||
(funcall ats (format "set output '%s'" (expand-file-name file))))
|
||||
|
||||
(when plot-pre
|
||||
(funcall ats (funcall plot-pre table data-file num-cols params plot-str)))
|
||||
|
Loading…
Reference in New Issue
Block a user