From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs 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 Message-ID: <87ikvn13o0.fsf@protonmail.com> References: <87ikvqv5a6.fsf@web.de> Reply-To: Pip Cet Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8834"; mail-complaints-to="usenet@ciao.gmane.io" To: 72778@debbugs.gnu.org, Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 26 21:33:39 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sifT7-0001zz-Hd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Aug 2024 21:33:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sifSj-0007qp-5I; Mon, 26 Aug 2024 15:33:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sifSh-0007qZ-Tp for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 15:33:12 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sifSh-0007eO-En for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 15:33:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=11Yc9ym9IdgyEuISJdx2sxf7YwQMRSsIB+sSGPcoxzw=; b=MwvxUsu3ko0Qsa7a86qFsDtoCTLvw3Ox8gmIdzD2TBJQIjxWq/KHLBUrKXBt8Xgpb9rMSbE1DVQpO8IRXKGxbVL9Cs2uWWBqi1eAEzEZ50/Z0xTJhzoRjFv/haGqP+kOaVH3HfX358MwIZKsAQg57m1OBo6JYpPHLeF9ek/cqw8lxA5inxvgIO4KtnnXFaQozmC49yI5Q9PO2UrJfxbaBCfB70EogI3xH36m2cpKSrX5+oA0J3DcRMg1YvWJIFmOyXFfP2DktFgDXwfcShgWziC19wEQJRgc4cZ5cqgJGuE4BfgWS03elIJQlqNkLwgPE/71hRh5iig6fvH5sqIwMQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sifTW-0007VI-C1 for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 15:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Aug 2024 19:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72778 X-GNU-PR-Package: emacs Original-Received: via spool by 72778-submit@debbugs.gnu.org id=B72778.172470079928785 (code B ref 72778); Mon, 26 Aug 2024 19:34:02 +0000 Original-Received: (at 72778) by debbugs.gnu.org; 26 Aug 2024 19:33:19 +0000 Original-Received: from localhost ([127.0.0.1]:45238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sifSp-0007UD-9x for submit@debbugs.gnu.org; Mon, 26 Aug 2024 15:33:19 -0400 Original-Received: from mail-40133.protonmail.ch ([185.70.40.133]:39261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sifSm-0007Tw-TO for 72778@debbugs.gnu.org; Mon, 26 Aug 2024 15:33:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1724700728; x=1724959928; bh=11Yc9ym9IdgyEuISJdx2sxf7YwQMRSsIB+sSGPcoxzw=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ygu0u+S9yqLqiq9+b0Vgn8HPyo9SJIQLV/7MBOM/kwe71J1unpB9pCcyCBGZyXfo2 VtkO9PCMrrOY24srKikoxFL3zA68KivQCyT/Us/kGbAvkwPufEgD/uaTqHzqxANgnv nCYg+mceQ7NrmmXHwMRStqIceIgNTtuM8SZ+AM9CQFmOzllz7EwTmPQWGyvUq3E4Sz +/S319Ovd6GzKoxrIhLPxXisWHalF3tFiMYFYEzJgPfmrgKAqp6AHWvQlY7mD3/uVL v5HcUotZT2zinhf24AKu7F5x6orM5OR1HfU409QzIYwq4cv3lAlwxKdR0c4h8mM4wU yQSS3t7cmtavQ== In-Reply-To: <87ikvqv5a6.fsf@web.de> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: b123274bbc7f2894cc79c9470cdd56e4efdbe948 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290791 Archived-At: "Michael Heerdegen via \"Bug reports for GNU Emacs, the Swiss army knife of= text editors\"" 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=3Ddumb 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