From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#55103: 29.0.50; Server mode + reuseable-frames + switch-to-buffer-other-window + *scratch* => hang Date: Mon, 25 Apr 2022 09:56:45 +0200 Message-ID: <871qxl7g02.fsf@gnus.org> References: <87v8uyyn5a.fsf@priss.frightenedpiglet.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26552"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55103@debbugs.gnu.org To: Derek Upham Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 25 09:57:12 2022 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 1nitaq-0006in-Jc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Apr 2022 09:57:12 +0200 Original-Received: from localhost ([::1]:54286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nitap-0001w7-0T for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Apr 2022 03:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nitag-0001tz-SL for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2022 03:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nitag-0006R6-I6 for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2022 03:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nitag-0001yE-GB for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2022 03:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Apr 2022 07:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55103 X-GNU-PR-Package: emacs Original-Received: via spool by 55103-submit@debbugs.gnu.org id=B55103.16508734207565 (code B ref 55103); Mon, 25 Apr 2022 07:57:02 +0000 Original-Received: (at 55103) by debbugs.gnu.org; 25 Apr 2022 07:57:00 +0000 Original-Received: from localhost ([127.0.0.1]:33076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nitae-0001xx-5L for submit@debbugs.gnu.org; Mon, 25 Apr 2022 03:57:00 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nitac-0001xi-Bg for 55103@debbugs.gnu.org; Mon, 25 Apr 2022 03:56:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ODo36nJG8t9RBnY4XY55O9uIvymghUe5Y/Jat8PCgYI=; b=gdsNOZUlSWjcW1AV+RNVGw39qN /ErAXo3CpnKB965t9/QUhYijtgLviuB2uahW6Lf5xqmwU+1inuw/EtoVp4wfdwJZr+MzNqrXKWymO ZyhyiXLW+F69PWbM+Bn8CU67RlE8LtnIAyWfiZhhXeyOZbOxcJZA7S4ij42sUdbR4Uz0=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nitaQ-000804-4V; Mon, 25 Apr 2022 09:56:51 +0200 X-Now-Playing: Prince's _Sign 'O' the Times (4): Vault Tracks I_: "The Ballad Of Dorothy Parker (With Horns)" In-Reply-To: <87v8uyyn5a.fsf@priss.frightenedpiglet.com> (Derek Upham's message of "Sun, 24 Apr 2022 18:20:17 -0700") 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" Xref: news.gmane.io gmane.emacs.bugs:230615 Archived-At: Derek Upham writes: > * Starting Emacs in server mode allocates a headless terminal frame > ("F1"). That hidden frame contains a window that displays *scratch* > (because that's the default thing to display). > > * The reuseable-frames parameter directs Emacs to reuse that terminal > frame. After all, the frame is showing the *scratch* buffer. It's a > valid candidate according to the code. > > * Emacs can't actually display the headless terminal frame. It hangs. > > At it's broadest, the bug here is that the reuseable-frames logic > doesn't understand that there are frames that you will never see in your > display, and that the code should avoid them. The most conservative > approach is to filter out any frame not handled by on your display. > That has interesting implications for X11, where two X11 frames look the > same to the user, whether or not they share the same client connection. > ("Why is this not reusing my frame that's right there?") Yes, I don't think Emacs can, in general, know whether a frame is visible on the same actual display as another frame. But in this case, I think it should be possible to avoid that initial dummy frame, surely. I've added Martin to the CCs; perhaps he has some comments here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no