[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 2c22bba 2/3: org-plot: Expand file name of output i
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 2c22bba 2/3: org-plot: Expand file name of output image |
Date: |
Mon, 26 Apr 2021 11:57:09 -0400 (EDT) |
branch: externals/org
commit 2c22bba4a210fda8737ffb1c02bc855faa9d74e6
Author: TEC <tec@tecosaur.com>
Commit: TEC <tec@tecosaur.com>
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.
---
lisp/org-plot.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-plot.el b/lisp/org-plot.el
index 6fe01c4..a0687ab 100644
--- a/lisp/org-plot.el
+++ b/lisp/org-plot.el
@@ -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)))