* lisp/calc/calc-graph.el (calc-gnuplot-command): Prepend newline
to Gnuplot command. Suggested by Visuwesh <visuweshm@gmail.com>.
(Bug#72778)
(cherry picked from commit
bb5576fc9071590143af2106111d95ca2221a20c)
"Send ARGS to Gnuplot.
Returns nil if Gnuplot signaled an error."
(calc-graph-init)
- (let ((cmd (concat (mapconcat 'identity args " ") "\n")))
+ ;; We prepend the newline to work around a bug in Gnuplot, whereby it
+ ;; sometimes does not display the plot, see bug#72778.
+ (let ((cmd (concat "\n" (mapconcat 'identity args " ") "\n")))
(or (calc-graph-w32-p)
(accept-process-output))
(with-current-buffer calc-gnuplot-buffer