From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Teemu Likonen , 3442@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 01 Jun 2009 12:45:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12438598232262 (code B ref -1); Mon, 01 Jun 2009 12:45:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Jun 2009 12:37:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.1 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n51CaveF002257 for ; Mon, 1 Jun 2009 05:36:58 -0700 Received: from mx10.gnu.org ([199.232.76.166]:35651) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MB6l6-0005RJ-Ft for emacs-pretest-bug@gnu.org; Mon, 01 Jun 2009 08:36:56 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MB6l4-0002Ol-LB for emacs-pretest-bug@gnu.org; Mon, 01 Jun 2009 08:36:56 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:39705 helo=jenni1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MB6l3-0002KS-CR for emacs-pretest-bug@gnu.org; Mon, 01 Jun 2009 08:36:54 -0400 Received: from mithlond.arda.local (80.220.180.181) by jenni1.inet.fi (8.5.014) id 49F597660156812C for emacs-pretest-bug@gnu.org; Mon, 1 Jun 2009 15:36:33 +0300 Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MB6kd-0005pt-H1 for emacs-pretest-bug@gnu.org; Mon, 01 Jun 2009 15:36:27 +0300 From: Teemu Likonen To: emacs-pretest-bug@gnu.org Date: Mon, 01 Jun 2009 15:36:27 +0300 Message-ID: <87ab4s871w.fsf@iki.fi> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) When Emacs daemon is running and a client frame is active, executing delete-other-frames command (C-x 5 1) kills the daemon and makes the Emacs session just a normal server session which requires that one frame exists. To reproduce: 1. Start Emacs daemon: emacs -Q --daemon 2. Start a client session: emacsclient -c 3. Type "C-x 5 1" and then try to close the frame with "C-x 5 0". The following message is displayed in the minibuffer: Attempt to delete the sole visible or iconified frame 4. Forcibly close the frame with "C-x C-c" or window manager's close button. 5. See the system's process list with "ps" command. There is no Emacs process anymore. In GNU Emacs 23.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-06-01 on mithlond Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--prefix=/home/dtw/local'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fi_FI.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-undo-mode: t ergo-movement-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Teemu Likonen , 3442@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 01 Jun 2009 13:35:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3442-submit@emacsbugs.donarmstrong.com id=B3442.124386289111129 (code B ref 3442); Mon, 01 Jun 2009 13:35:05 +0000 Received: (at 3442) by emacsbugs.donarmstrong.com; 1 Jun 2009 13:28:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from jenni1.inet.fi (mta-out.inet.fi [195.156.147.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n51DS6d8011122 for <3442@emacsbugs.donarmstrong.com>; Mon, 1 Jun 2009 06:28:07 -0700 Received: from mithlond.arda.local (80.220.180.181) by jenni1.inet.fi (8.5.014) id 49F5976601570EB3 for 3442@emacsbugs.donarmstrong.com; Mon, 1 Jun 2009 16:28:05 +0300 Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MB7YZ-0000vC-P5 for 3442@emacsbugs.donarmstrong.com; Mon, 01 Jun 2009 16:28:03 +0300 From: Teemu Likonen To: 3442@debbugs.gnu.org In-Reply-To: <87ab4s871w.fsf@iki.fi> (Teemu Likonen's message of "Mon, 01 Jun 2009 15:36:27 +0300") References: <87ab4s871w.fsf@iki.fi> Date: Mon, 01 Jun 2009 16:28:03 +0300 Message-ID: <87my8s5bj0.fsf@iki.fi> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On 2009-06-01 15:36 (+0300), Teemu Likonen wrote: > 2. Start a client session: > > emacsclient -c You could also start the client sessions with emacsclient -c -n so that there are no clients waiting and you don't need any force... > 3. Type "C-x 5 1" and then try to close the frame with "C-x 5 0". The > following message is displayed in the minibuffer: > > Attempt to delete the sole visible or iconified frame > > 4. Forcibly close the frame with "C-x C-c" or window manager's close > button. ...to close the frame. The frame just closes normally and after that there's no daemon nor any Emacs process left in the system. From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Stefan Monnier , 3442@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 03 Jun 2009 19:50:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12440582052478 (code B ref -1); Wed, 03 Jun 2009 19:50:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Jun 2009 19:43:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.3 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n53JhLQW002472 for ; Wed, 3 Jun 2009 12:43:22 -0700 Received: from mail.gnu.org ([199.232.76.166]:49214 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MBwMq-0003PT-Tr for emacs-pretest-bug@gnu.org; Wed, 03 Jun 2009 15:43:20 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MBwMq-0005dE-2F for emacs-pretest-bug@gnu.org; Wed, 03 Jun 2009 15:43:20 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:55749 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBwMp-0005ct-NF for emacs-pretest-bug@gnu.org; Wed, 03 Jun 2009 15:43:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEEAF9vJkpLd+nI/2dsb2JhbACBT9AchAsFhgY X-IronPort-AV: E=Sophos;i="4.41,299,1241409600"; d="scan'208";a="39582202" Received: from 75-119-233-200.dsl.teksavvy.com (HELO ceviche.home) ([75.119.233.200]) by ironport2-out.teksavvy.com with ESMTP; 03 Jun 2009 15:43:18 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 72913B45E4; Wed, 3 Jun 2009 15:43:18 -0400 (EDT) From: Stefan Monnier To: Teemu Likonen Cc: 3442@debbugs.gnu.org, emacs-pretest-bug@gnu.org Message-ID: References: <87ab4s871w.fsf@iki.fi> Date: Wed, 03 Jun 2009 15:43:18 -0400 In-Reply-To: <87ab4s871w.fsf@iki.fi> (Teemu Likonen's message of "Mon, 01 Jun 2009 15:36:27 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > When Emacs daemon is running and a client frame is active, executing > delete-other-frames command (C-x 5 1) kills the daemon and makes the > Emacs session just a normal server session which requires that one frame > exists. To reproduce: Indeed, C-x 5 1 should only delete the frames on the current terminal, whereas it currently kills *all* the frames on all terminals (including the special internal terminal used for the daemon). Stefan From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Stefan Monnier , 3442@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Jun 2009 18:40:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124414031531215 (code B ref -1); Thu, 04 Jun 2009 18:40:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Jun 2009 18:31:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n54IVoCg031208 for ; Thu, 4 Jun 2009 11:31:51 -0700 Received: from mx10.gnu.org ([199.232.76.166]:37986) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MCHjB-0006Pm-Ix for emacs-pretest-bug@gnu.org; Thu, 04 Jun 2009 14:31:49 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MCHjA-0002Sp-43 for emacs-pretest-bug@gnu.org; Thu, 04 Jun 2009 14:31:49 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:38377 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MCHj9-0002SN-Nn for emacs-pretest-bug@gnu.org; Thu, 04 Jun 2009 14:31:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwFAHewJ0pLd+nI/2dsb2JhbACBT84+hAsFhgY X-IronPort-AV: E=Sophos;i="4.41,306,1241409600"; d="scan'208";a="39641088" Received: from 75-119-233-200.dsl.teksavvy.com (HELO pastel.home) ([75.119.233.200]) by ironport2-out.teksavvy.com with ESMTP; 04 Jun 2009 14:31:46 -0400 Received: by pastel.home (Postfix, from userid 20848) id 69FAB87CA; Thu, 4 Jun 2009 14:31:46 -0400 (EDT) From: Stefan Monnier To: Teemu Likonen Cc: 3442@debbugs.gnu.org, emacs-pretest-bug@gnu.org Message-ID: References: <87ab4s871w.fsf@iki.fi> Date: Thu, 04 Jun 2009 14:31:46 -0400 In-Reply-To: (Stefan Monnier's message of "Wed, 03 Jun 2009 15:43:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. >> When Emacs daemon is running and a client frame is active, executing >> delete-other-frames command (C-x 5 1) kills the daemon and makes the >> Emacs session just a normal server session which requires that one frame >> exists. To reproduce: > Indeed, C-x 5 1 should only delete the frames on the current terminal, > whereas it currently kills *all* the frames on all terminals (including > the special internal terminal used for the daemon). I've installed a patch that makes C-x 5 1 only delete frames on the same terminal, which should fix this issue. Stefan From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Dan Nicolaescu , 3442@debbugs.gnu.org Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Jun 2009 01:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3442-submit@emacsbugs.donarmstrong.com id=B3442.124416512925552 (code B ref 3442); Fri, 05 Jun 2009 01:35:03 +0000 Received: (at 3442) by emacsbugs.donarmstrong.com; 5 Jun 2009 01:25:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n551POsF025545 for <3442@emacsbugs.donarmstrong.com>; Thu, 4 Jun 2009 18:25:25 -0700 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n551PAEk023294; Thu, 4 Jun 2009 18:25:10 -0700 (PDT) Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n551P9ot018376; Thu, 4 Jun 2009 18:25:09 -0700 (PDT) Date: Thu, 4 Jun 2009 18:25:09 -0700 (PDT) Message-Id: <200906050125.n551P9ot018376@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 3442@debbugs.gnu.org, Teemu Likonen References: <87ab4s871w.fsf@iki.fi> In-Reply-To: (Stefan Monnier's message of "Thu, 04 Jun 2009 14:31:46 -0400") Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n551PAEk023294 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu Stefan Monnier writes: > >> When Emacs daemon is running and a client frame is active, executing > >> delete-other-frames command (C-x 5 1) kills the daemon and makes the > >> Emacs session just a normal server session which requires that one frame > >> exists. To reproduce: > > > Indeed, C-x 5 1 should only delete the frames on the current terminal, > > whereas it currently kills *all* the frames on all terminals (including > > the special internal terminal used for the daemon). > > I've installed a patch that makes C-x 5 1 only delete frames on the same > terminal, which should fix this issue. That's a behavior change, isn't it? Maybe people use C-x 5 1 to remove the rest of the frames on all terminals... (I personally have never used C-x 5 1) If we don't want to change the C-x 5 1 behavior, we can just avoid deleting the daaemon special frame, i.e.: + (unless (or (eq (frame-parameter frame 'minibuffer) 'only) + ;; Take care not to delete the special frame that + ;; the daemon uses. + (and is-daemon (eq frame terminal-frame))) where is-daemon is let bound to (daemonp) From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Eli Zaretskii , 3442@debbugs.gnu.org Resent-From: Eli Zaretskii Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Jun 2009 03:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3442-submit@emacsbugs.donarmstrong.com id=B3442.12441720078934 (code B ref 3442); Fri, 05 Jun 2009 03:25:04 +0000 Received: (at 3442) by emacsbugs.donarmstrong.com; 5 Jun 2009 03:20:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n553K1Tx008800 for <3442@emacsbugs.donarmstrong.com>; Thu, 4 Jun 2009 20:20:03 -0700 Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MCPyK-0000ed-Mj; Thu, 04 Jun 2009 23:20:00 -0400 From: Eli Zaretskii To: Dan Nicolaescu , 3442@debbugs.gnu.org CC: monnier@iro.umontreal.ca, tlikonen@iki.fi In-reply-to: <200906050125.n551P9ot018376@godzilla.ics.uci.edu> (message from Dan Nicolaescu on Thu, 4 Jun 2009 18:25:09 -0700 (PDT)) References: <87ab4s871w.fsf@iki.fi> <200906050125.n551P9ot018376@godzilla.ics.uci.edu> Message-Id: Date: Thu, 04 Jun 2009 23:20:00 -0400 > Date: Thu, 4 Jun 2009 18:25:09 -0700 (PDT) > From: Dan Nicolaescu > Cc: Teemu Likonen , 3442@emacsbugs.donarmstrong.com > Reply-To: Dan Nicolaescu , 3442@emacsbugs.donarmstrong.com > > Stefan Monnier writes: > > > I've installed a patch that makes C-x 5 1 only delete frames on the same > > terminal, which should fix this issue. > > That's a behavior change, isn't it? > Maybe people use C-x 5 1 to remove the rest of the frames on all > terminals... (I personally have never used C-x 5 1) > > If we don't want to change the C-x 5 1 behavior, we can just avoid > deleting the daaemon special frame, i.e.: > > > + (unless (or (eq (frame-parameter frame 'minibuffer) 'only) > + ;; Take care not to delete the special frame that > + ;; the daemon uses. > + (and is-daemon (eq frame terminal-frame))) > > where is-daemon is let bound to (daemonp) FWIW, I like Dan's suggestion better, especially since we are late in the pretest, and shouldn't install changes that change well established behavior. From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Teemu Likonen , 3442@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Jun 2009 04:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3442-submit@emacsbugs.donarmstrong.com id=B3442.124417521316693 (code B ref 3442); Fri, 05 Jun 2009 04:20:04 +0000 Received: (at 3442) by emacsbugs.donarmstrong.com; 5 Jun 2009 04:13:33 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,REMOVEDOT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from jenni2.inet.fi (mta-out.inet.fi [195.156.147.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n554DR4Q016688 for <3442@emacsbugs.donarmstrong.com>; Thu, 4 Jun 2009 21:13:29 -0700 Received: from imladris.arda.local (84.251.6.80) by jenni2.inet.fi (8.5.014) id 49F5CB6401783371; Fri, 5 Jun 2009 07:13:20 +0300 Received: from dtw by imladris.arda.local with local (Exim 4.69) (envelope-from ) id 1MCQnq-0001zW-5G; Fri, 05 Jun 2009 07:13:14 +0300 From: Teemu Likonen To: Dan Nicolaescu Cc: Stefan Monnier , 3442@debbugs.gnu.org In-Reply-To: <200906050125.n551P9ot018376@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 4 Jun 2009 18:25:09 -0700 (PDT)") References: <87ab4s871w.fsf@iki.fi> <200906050125.n551P9ot018376@godzilla.ics.uci.edu> Date: Fri, 05 Jun 2009 07:13:13 +0300 Message-ID: <87hbyvxqqu.fsf@iki.fi> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On 2009-06-04 18:25 (-0700), Dan Nicolaescu wrote: > Stefan Monnier writes: > > I've installed a patch that makes C-x 5 1 only delete frames on > > the same terminal, which should fix this issue. > > That's a behavior change, isn't it? Maybe people use C-x 5 1 to remove > the rest of the frames on all terminals... (I personally have never > used C-x 5 1) I don't know what terminal means in this context nor what other people think but just as a simple user this is what I'd expect: In X Window System C-x 5 1 would delete other X frames. In tty C-x 5 1 would delete other frames in that particular tty. Quite obviously neither would affect daemon nor unrelated Emacs sessions. I use C-x 5 1 quite a lot. From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Stefan Monnier , 3442@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Jun 2009 14:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3442-submit@emacsbugs.donarmstrong.com id=B3442.12442128918255 (code B ref 3442); Fri, 05 Jun 2009 14:50:04 +0000 Received: (at 3442) by emacsbugs.donarmstrong.com; 5 Jun 2009 14:41:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n55EfR1w008250 for <3442@emacsbugs.donarmstrong.com>; Fri, 5 Jun 2009 07:41:28 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnsFAOPKKEpLd+nI/2dsb2JhbACBT9AlhAoFhgeCQw X-IronPort-AV: E=Sophos;i="4.41,312,1241409600"; d="scan'208";a="39684449" Received: from 75-119-233-200.dsl.teksavvy.com (HELO pastel.home) ([75.119.233.200]) by ironport2-out.teksavvy.com with ESMTP; 05 Jun 2009 10:41:21 -0400 Received: by pastel.home (Postfix, from userid 20848) id 9BF1587CA; Fri, 5 Jun 2009 10:41:21 -0400 (EDT) From: Stefan Monnier To: Dan Nicolaescu Cc: 3442@debbugs.gnu.org, Teemu Likonen Message-ID: References: <87ab4s871w.fsf@iki.fi> <200906050125.n551P9ot018376@godzilla.ics.uci.edu> Date: Fri, 05 Jun 2009 10:41:21 -0400 In-Reply-To: <200906050125.n551P9ot018376@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 4 Jun 2009 18:25:09 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> I've installed a patch that makes C-x 5 1 only delete frames on the same >> terminal, which should fix this issue. > That's a behavior change, isn't it? Yes, tho only for people who were using a single Emacs displaying frames on several X11 displays. I feel like it's a change for the better, obviously. This command has never clearly specified what it did in the case where there are several terminals because it was written at a time where Emacs did not support this mode of operation. So, AFAICT even the behavior change is a bug fix. Stefan From unknown Thu Aug 14 18:39:31 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Reply-To: Teemu Likonen , 3442@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 13 Jun 2009 22:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3442-submit@emacsbugs.donarmstrong.com id=B3442.124493001129726 (code B ref 3442); Sat, 13 Jun 2009 22:00:03 +0000 Received: (at 3442) by emacsbugs.donarmstrong.com; 13 Jun 2009 21:53:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from kirsi1.inet.fi (mta-out.inet.fi [195.156.147.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5DLrQuo029716 for <3442@emacsbugs.donarmstrong.com>; Sat, 13 Jun 2009 14:53:28 -0700 Received: from mithlond.arda.local (80.220.180.181) by kirsi1.inet.fi (8.5.014) id 49F6055A01C418A8; Sun, 14 Jun 2009 00:53:24 +0300 Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MFbA9-00083n-JL; Sun, 14 Jun 2009 00:53:21 +0300 From: Teemu Likonen To: Stefan Monnier Cc: 3442@debbugs.gnu.org In-Reply-To: (Stefan Monnier's message of "Thu, 04 Jun 2009 14:31:46 -0400") References: <87ab4s871w.fsf@iki.fi> Date: Sun, 14 Jun 2009 00:53:21 +0300 Message-ID: <87ab4breb2.fsf@iki.fi> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On 2009-06-04 14:31 (-0400), Stefan Monnier wrote: >>> When Emacs daemon is running and a client frame is active, executing >>> delete-other-frames command (C-x 5 1) kills the daemon and makes the >>> Emacs session just a normal server session which requires that one >>> frame exists. To reproduce: > >> Indeed, C-x 5 1 should only delete the frames on the current >> terminal, whereas it currently kills *all* the frames on all >> terminals (including the special internal terminal used for the >> daemon). > > I've installed a patch that makes C-x 5 1 only delete frames on the > same terminal, which should fix this issue. I've been testing the fix for a while and it seems to work nicely. Thank you. As far as I'm concerned this bug can closed. From unknown Thu Aug 14 18:39:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Teemu Likonen Subject: bug#3442 closed by Stefan Monnier (Re: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon) Message-ID: References: <87ab4s871w.fsf@iki.fi> X-Emacs-PR-Message: they-closed 3442 X-Emacs-PR-Package: emacs Reply-To: 3442@debbugs.gnu.org Date: Mon, 15 Jun 2009 20:25:07 +0000 Content-Type: multipart/mixed; boundary="----------=_1245097507-6059-1" This is a multi-part message in MIME format... ------------=_1245097507-6059-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon It has been closed by Stefan Monnier . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Stefan Monnier by replying to this email. --=20 3442: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3442 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1245097507-6059-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3442-done) by emacsbugs.donarmstrong.com; 15 Jun 2009 20:19:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from smtp-03.vtx.ch (smtp-03.vtx.ch [212.147.0.64]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5FKJNae005103 for <3442-done@emacsbugs.donarmstrong.com>; Mon, 15 Jun 2009 13:19:25 -0700 Received: from alfajor.home (dyn.144-85-131-252.dsl.vtx.ch [144.85.131.252]) by smtp-03.vtx.ch (VTX Services SA) with ESMTP id EAD77296C47; Mon, 15 Jun 2009 22:19:22 +0200 (CEST) Received: by alfajor.home (Postfix, from userid 20848) id CAD766433A; Mon, 15 Jun 2009 16:19:22 -0400 (EDT) From: Stefan Monnier To: Teemu Likonen Cc: 3442-done@debbugs.gnu.org Subject: Re: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Message-ID: References: <87ab4s871w.fsf@iki.fi> <87ab4breb2.fsf@iki.fi> Date: Mon, 15 Jun 2009 16:19:22 -0400 In-Reply-To: <87ab4breb2.fsf@iki.fi> (Teemu Likonen's message of "Sun, 14 Jun 2009 00:53:21 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I've been testing the fix for a while and it seems to work nicely. Thank > you. As far as I'm concerned this bug can closed. Thank you, Stefan ------------=_1245097507-6059-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 1 Jun 2009 12:37:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.1 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n51CaveF002257 for ; Mon, 1 Jun 2009 05:36:58 -0700 Received: from mx10.gnu.org ([199.232.76.166]:35651) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MB6l6-0005RJ-Ft for emacs-pretest-bug@gnu.org; Mon, 01 Jun 2009 08:36:56 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MB6l4-0002Ol-LB for emacs-pretest-bug@gnu.org; Mon, 01 Jun 2009 08:36:56 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:39705 helo=jenni1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MB6l3-0002KS-CR for emacs-pretest-bug@gnu.org; Mon, 01 Jun 2009 08:36:54 -0400 Received: from mithlond.arda.local (80.220.180.181) by jenni1.inet.fi (8.5.014) id 49F597660156812C for emacs-pretest-bug@gnu.org; Mon, 1 Jun 2009 15:36:33 +0300 Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MB6kd-0005pt-H1 for emacs-pretest-bug@gnu.org; Mon, 01 Jun 2009 15:36:27 +0300 From: Teemu Likonen To: emacs-pretest-bug@gnu.org Subject: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Date: Mon, 01 Jun 2009 15:36:27 +0300 Message-ID: <87ab4s871w.fsf@iki.fi> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) When Emacs daemon is running and a client frame is active, executing delete-other-frames command (C-x 5 1) kills the daemon and makes the Emacs session just a normal server session which requires that one frame exists. To reproduce: 1. Start Emacs daemon: emacs -Q --daemon 2. Start a client session: emacsclient -c 3. Type "C-x 5 1" and then try to close the frame with "C-x 5 0". The following message is displayed in the minibuffer: Attempt to delete the sole visible or iconified frame 4. Forcibly close the frame with "C-x C-c" or window manager's close button. 5. See the system's process list with "ps" command. There is no Emacs process anymore. In GNU Emacs 23.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-06-01 on mithlond Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--prefix=/home/dtw/local'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fi_FI.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-undo-mode: t ergo-movement-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t ------------=_1245097507-6059-1--