all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 72778@debbugs.gnu.org, Michael Heerdegen <michael_heerdegen@web.de>
Subject: bug#72778: 31.0.50; Calc: g f doesn't display gnuplot window after closing
Date: Mon, 26 Aug 2024 19:32:02 +0000	[thread overview]
Message-ID: <87ikvn13o0.fsf@protonmail.com> (raw)
In-Reply-To: <87ikvqv5a6.fsf@web.de>

"Michael Heerdegen via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\"" <bug-gnu-emacs@gnu.org> writes:
> 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.

I've investigated this.  This is a gnuplot bug that shows up only under
these conditions:

- qtterm is in use
- the BSD (not GNU) readline library is used (this is true in Debian)
- a window is closed at the wrong time
- a specific call to select() is NOT interrupted by a signal (GDB,
  unfortunately, causes an interrupt at the wrong moment, turning this
  into a Heisenbug)
- gnuplot talks to Emacs using a pty (and, I think, TERM=dumb is also
  required)

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.

HTH
Pip






  parent reply	other threads:[~2024-08-26 19:32 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
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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ikvn13o0.fsf@protonmail.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=72778@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    --cc=pipcet@protonmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.