From: Visuwesh <visuweshm@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 72778@debbugs.gnu.org
Subject: bug#72778: 31.0.50; Calc: g f doesn't display gnuplot window after closing
Date: Sat, 24 Aug 2024 12:30:09 +0530 [thread overview]
Message-ID: <87jzg676di.fsf@gmail.com> (raw)
In-Reply-To: <87ikvqv5a6.fsf@web.de> (Michael Heerdegen via's message of "Sat, 24 Aug 2024 07:49:53 +0200")
[சனி ஆகஸ்ட் 24, 2024] Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:
> 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 don't use Calc's interface to gnuplot but I will note that I face a
similar issue with gnuplot package's comint interface to gnuplot as
well. I need to send the same command twice sometimes to make gnuplot
actually interpret the command. This might be a related issue.
> 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.
next prev parent reply other threads:[~2024-08-24 7:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-24 5:49 bug#72778: 31.0.50; Calc: g f doesn't display gnuplot window after closing Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-24 6:25 ` Eli Zaretskii
2024-08-24 7:00 ` Visuwesh [this message]
2024-08-24 7:31 ` Eli Zaretskii
2024-08-25 5:51 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-26 6:02 ` Visuwesh
2024-08-26 19:32 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-28 9:01 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-28 12:39 ` Eli Zaretskii
2024-08-31 10:00 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jzg676di.fsf@gmail.com \
--to=visuweshm@gmail.com \
--cc=72778@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).