]> git.eshelyaron.com Git - emacs.git/commit
Fix Calc graph output on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sun, 13 Jan 2019 15:50:16 +0000 (17:50 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 13 Jan 2019 15:50:16 +0000 (17:50 +0200)
commitb26d6373c48ca26a7cfc81fd03ec8d7f50c13962
tree0a14c77b721472c1d7063e9afa008bcde64ad245
parent03818b0a9509e5e54aaee8a40c25f7da099fb7df
Fix Calc graph output on MS-Windows

The previous code relied on "pgnuplot" executable, which is
no longer provided with Gnuplot 5.x.
* lisp/calc/calc.el (calc-gnuplot-name): Set to "pgnuplot" on
MS-Windows only if such an executable exists.
* lisp/calc/calc-graph.el (calc-graph-w32-p): New defsubst.
(calc-graph-plot, calc-graph-command, calc-gnuplot-command)
(calc-graph-init): Call calc-graph-w32-p wherever we need to
do something special for invoking gnuplot on MS-Windows,
instead of comparing against calc-gnuplot-name.
(calc-graph-plot): Set the terminal to "qt" on MS-Windows when
pgnuplot.exe is not available.
(calc-graph-kill): Delete the temporary files only after
killing the gnuplot process, otherwise the deletion might fail
on MS-Windows because the files are still in use.
lisp/calc/calc-graph.el
lisp/calc/calc.el