From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#3442: 23.0.94; "C-x 5 1" (delete-other-frames) kills daemon Date: Thu, 4 Jun 2009 18:25:09 -0700 (PDT) Message-ID: <200906050125.n551P9ot018376@godzilla.ics.uci.edu> References: <87ab4s871w.fsf@iki.fi> Reply-To: Dan Nicolaescu , 3442@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244169915 20058 80.91.229.12 (5 Jun 2009 02:45:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2009 02:45:15 +0000 (UTC) Cc: Teemu Likonen , 3442@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 04:45:12 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MCPQd-00075u-Ms for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2009 04:45:12 +0200 Original-Received: from localhost ([127.0.0.1]:44656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCPQc-0004tf-J4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jun 2009 22:45:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCON5-000311-Pz for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2009 21:37:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCON1-0002xO-OJ for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2009 21:37:27 -0400 Original-Received: from [199.232.76.173] (port=58512 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCON1-0002xD-GA for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2009 21:37:23 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58308) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MCON0-0008T2-3o for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2009 21:37:23 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n551bISF026832; Thu, 4 Jun 2009 18:37:18 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n551Z3Ut026268; Thu, 4 Jun 2009 18:35:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Jun 2009 01:35:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3442 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3442-submit@emacsbugs.donarmstrong.com id=B3442.124416512925552 (code B ref 3442); Fri, 05 Jun 2009 01:35:03 +0000 Original-Received: (at 3442) by emacsbugs.donarmstrong.com; 5 Jun 2009 01:25:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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) Original-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) In-Reply-To: (Stefan Monnier's message of "Thu, 04 Jun 2009 14:31:46 -0400") Original-Lines: 28 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 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 04 Jun 2009 21:37:27 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28498 Archived-At: 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)