GNU bug report logs - #72778
31.0.50; Calc: g f doesn't display gnuplot window after closing

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Sat, 24 Aug 2024 05:51:02 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#72778: closed (31.0.50; Calc: g f doesn't display gnuplot
 window after closing)
Date: Sat, 31 Aug 2024 10:02:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 31 Aug 2024 13:00:50 +0300
with message-id <86wmjxau5p.fsf <at> gnu.org>
and subject line Re: bug#72778: 31.0.50; Calc: g f doesn't display gnuplot window after closing
has caused the debbugs.gnu.org bug report #72778,
regarding 31.0.50; Calc: g f doesn't display gnuplot window after closing
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
72778: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72778
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; Calc: g f doesn't display gnuplot window after closing
Date: Sat, 24 Aug 2024 07:49:53 +0200
Hello,

I'm using a graphical version of Gnuplot in Debian Gnu/Linux.

In Calc, whenever I have displayed a graph view using g f, and then have
been closing the Gnuplot X window, the next g f or g p will always not
display the Gnuplot view.  Hitting the keys again displays it, however.

When I don't close the Gnuplot window, the graph view is updated as
expected.


I found nothing obvious in the Calc code.  In the scenario where the
window doesn't pop up, the Gnuplot process is alive.  I edebugged
`calc-gnuplot-command' and the relevant line

  (process-send-string calc-gnuplot-process cmd)

seems to be the correct call.  When edebugging, simply executing this
very same call makes the Gnuplot window appear!  For some reason,
Gnuplot only displays the window for the second process-send-string
call.  Could be a Gnuplot bug, I dunno.

And...when I redefine `calc-gnuplot-alive' to always fail, the problem
is fixed, in a very inelegant way of course.  So there is something
wrong when talking with Gnuplot, or with Gnuplot itself.

I'm on Debian, I tried several different graphical Gnuplot versions, but
it's the same for all of them.

I'm thankful for all insights.


Michael.






[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: michael_heerdegen <at> web.de, pipcet <at> protonmail.com,
 Visuwesh <visuweshm <at> gmail.com>
Cc: 72778-done <at> debbugs.gnu.org
Subject: Re: bug#72778: 31.0.50;
 Calc: g f doesn't display gnuplot window after closing
Date: Sat, 31 Aug 2024 13:00:50 +0300
> Cc: pipcet <at> protonmail.com, 72778 <at> debbugs.gnu.org
> Date: Wed, 28 Aug 2024 15:39:21 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > Cc: 72778 <at> debbugs.gnu.org
> > Date: Wed, 28 Aug 2024 11:01:48 +0200
> > From:  Michael Heerdegen via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> > 
> > Pip Cet <pipcet <at> protonmail.com> writes:
> > 
> > > [...]
> > > I've submitted a patch to gnuplot to fix these issues, but a workaround
> > > is required for, at least, existing gnuplot versions.  Sending an extra
> > > newline character preceding each gnuplot command, as Visuwesh's patch
> > > does, should be both safe and effective, even in the case of several
> > > windows being closed prior to the command that would otherwise be
> > > swallowed.
> > 
> > Ok - thank you both, Pip and Visuwesh for investigating.
> > 
> > Eli, should we install that patch (rather master I guess)?  It fixes the
> > problem for me.
> 
> I think we should install on emacs-30, unless someone can thing of any
> potential problem with it.

No objections, so I've now installed the workaround on the emacs-30
branch, and I'm therefore closing this bug.


This bug report was last modified 321 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.