From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72778: 31.0.50; Calc: g f doesn't display gnuplot window after closing Date: Sat, 24 Aug 2024 09:25:04 +0300 Message-ID: <8634muphdr.fsf@gnu.org> References: <87ikvqv5a6.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30971"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72778@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 24 08:26:28 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 1shkEG-0007sC-9V for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Aug 2024 08:26:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shkE6-0003Yu-8z; Sat, 24 Aug 2024 02:26:18 -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 1shkE4-0003Yi-SW for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 02:26:17 -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 1shkE4-000605-Ht for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 02:26:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=b/4qpSD0cIIGb4DdGuQ3eVGu2PTN+ih/loLDUjhW7b4=; b=NCL8lvjBE0KpRBazH3OI/V8Jjvq+jcHN9k/783OM4aprvdg9i7REQH9sJquMEJLA3gwY65s6ynqrmdU1WZ6tBoUFPyHekNzhmPhELfnVGfDEww0PbTAkCkQVMN9IUMGcDDsn9vYhlrPUm6RKRtPVHxvYlKPSKdQYDHMZQXeP7AMy8Q67OPb/TOqmKjKFiZiyT1VZaBqsllz4s+erOGd37qG6tCS2owA1B17oo06040p0jQTgQKPI9rDF6upNZct9aTTt9b3Z2KLZhr8hU2HQGWRd7KO02lTKlJ14hR51kk4Niqk9vJDNd1nOCxf72X6R7GQxDuzCTEmblWlna6O/Fw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1shkEo-0003NC-JB for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 02:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Aug 2024 06:27: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.172448077612905 (code B ref 72778); Sat, 24 Aug 2024 06:27:02 +0000 Original-Received: (at 72778) by debbugs.gnu.org; 24 Aug 2024 06:26:16 +0000 Original-Received: from localhost ([127.0.0.1]:40300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shkE3-0003M5-P1 for submit@debbugs.gnu.org; Sat, 24 Aug 2024 02:26:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shkDz-0003Lj-67 for 72778@debbugs.gnu.org; Sat, 24 Aug 2024 02:26:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shkD7-0005xB-4D; Sat, 24 Aug 2024 02:25:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=b/4qpSD0cIIGb4DdGuQ3eVGu2PTN+ih/loLDUjhW7b4=; b=qlWRvNftQTHx wD1qVM/PSgtiv3x14KIaNupVdmD4a7hC3qc68R+po1fKM/PP9fvwEz3/x89LfLzrCctvkNX+IJreA Sq/zjyIwN0WGSGUZL2Jv8KzIFWEimLn//6nPMxk8OSCpjoGVkKc8bPZfmi7nq7tHKHbUvIpmNnBYK zdERXsTpf4NrzUKHeXymuVW9ulrvugbuEqVqwmjYLLo62QGKzsZU0Ev0AXcGVZwSoTry57LMbovYX uB3Ec679Rv2nsUR2oU2/E3COhTJX5ukIOzo+UZWNAL0IS0sV9H3NBEa52YTR4pLb3PtuG2VdchjEY MmmT497bReDHtUdVWuf/7A==; In-Reply-To: <87ikvqv5a6.fsf@web.de> (bug-gnu-emacs@gnu.org) 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:290622 Archived-At: > Date: Sat, 24 Aug 2024 07:49:53 +0200 > From: Michael Heerdegen via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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. Buffering issue? Is gnuplot run via a pipe or a PTY?