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#59522: 29.0.50; `C-x C-c' on undeleted frame closes Emacs server Date: Wed, 23 Nov 2022 22:06:58 +0200 Message-ID: <83sfi9xwnx.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19091"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59522@debbugs.gnu.org To: Igor Epstein Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 23 21:07:19 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 1oxw1f-0004iv-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Nov 2022 21:07:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxw1S-00084l-3P; Wed, 23 Nov 2022 15:07:07 -0500 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 1oxw1O-00084O-Jk for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 15:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxw1O-0007R7-98 for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 15:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxw1O-0006ZA-3A for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 15:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Nov 2022 20:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59522 X-GNU-PR-Package: emacs Original-Received: via spool by 59522-submit@debbugs.gnu.org id=B59522.166923400925222 (code B ref 59522); Wed, 23 Nov 2022 20:07:02 +0000 Original-Received: (at 59522) by debbugs.gnu.org; 23 Nov 2022 20:06:49 +0000 Original-Received: from localhost ([127.0.0.1]:56342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxw1B-0006Yk-Hb for submit@debbugs.gnu.org; Wed, 23 Nov 2022 15:06:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxw19-0006YX-Uo for 59522@debbugs.gnu.org; Wed, 23 Nov 2022 15:06:48 -0500 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 1oxw14-0007PE-JU; Wed, 23 Nov 2022 15:06:42 -0500 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=6BieCq5M9bH55Wkvd8y9hDqAEQZnRZil23nAEKy5nW8=; b=ru8jJ4h+Eq9F EsjuIF/9Yh7G5UTF8R/c+VKGTs5aAmcXTxe6sOFrOroIKcEojS29brmKRcHJO2QIKY5NXbFFDFtNN PVbcO3rlmlV8tmIG+r5DryfBf8p9JXejj/61Eqvs02zRvPzsnFTmpXppBXy2CnxFKktlZV8rMvdGn r9pVlp0k2PFbsHjx0mvuPfR+etoaHOrfz1oLuzrYM0n7JbeGESMeOx10Uvym6HrpuX/iPp95qmWIx KayIceu8xt4qKFfzrnt3tOGF8Sz/fT67enOtC+NO2xsDsRnKgVa+94Ah/QNkaWLDOkZxVD+vgqZDQ Z+rr2eO3UTea24Tag6UjNg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxw13-0000VB-NZ; Wed, 23 Nov 2022 15:06:42 -0500 In-Reply-To: (message from Igor Epstein on Wed, 23 Nov 2022 15:40:32 +0200) 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:248781 Archived-At: > From: Igor Epstein > Date: Wed, 23 Nov 2022 15:40:32 +0200 > > Hello. There is a sequence of actions that triggers shutting down Emacs > server when using undelete frame and `C-x C-c' it. > 1. Start with the following init.el: > (require 'server) > (unless (server-running-p) (server-start)) > (undelete-frame-mode) > 2. In a graphical terminal emulator, run `emacs' > 3. In another window of a terminal emulator, run `emacsclient -c' > 4. Ensure the second frame is selected, use `C-x C-c' > 5. Undelete the frame and again use `C-x C-c' inside the undeleted frame > 6. Observe that both frames are now closed > 7. Running `emacsclient -c' produces "can't find socket; have you > started the server?" I'm not sure I understand the expectation that the above should not shut down Emacs. The first "C-x C-c" doesn't do that because you are typing this in a client frame. But when you undelete that frame, Emacs cannot make it a client frame, because it cannot restore connection to emacsclient. So it makes an ordinary frame, and then "C-x C-c" shuts down Emacs. So I' not sure I see a bug here, perhaps just a surprising behavior. Bottom line is that undeleting a frame doesn't restore all frame attributes of that frame.