[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 bb5576fc907: Work around Gnuplot bug in displaying plots
From: |
Eli Zaretskii |
Subject: |
emacs-30 bb5576fc907: Work around Gnuplot bug in displaying plots |
Date: |
Sat, 31 Aug 2024 05:59:26 -0400 (EDT) |
branch: emacs-30
commit bb5576fc9071590143af2106111d95ca2221a20c
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Work around Gnuplot bug in displaying plots
* lisp/calc/calc-graph.el (calc-gnuplot-command): Prepend newline
to Gnuplot command. Suggested by Visuwesh <visuweshm@gmail.com>.
(Bug#72778)
---
lisp/calc/calc-graph.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/calc/calc-graph.el b/lisp/calc/calc-graph.el
index fb817b1bc3d..804ee3944c7 100644
--- a/lisp/calc/calc-graph.el
+++ b/lisp/calc/calc-graph.el
@@ -1417,7 +1417,9 @@ This \"dumb\" driver will be present in Gnuplot 3.0."
"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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 bb5576fc907: Work around Gnuplot bug in displaying plots,
Eli Zaretskii <=