From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Crash force-deleting the only frame Date: Thu, 02 Nov 2006 00:01:06 +0100 Message-ID: <857iye7owd.fsf@lola.goethe.zz> References: <87irhzopsv.fsf@cs.cmu.edu> <87lkmvp4pz.fsf@stupidchicken.com> <87u01ji1ga.fsf@stupidchicken.com> <87r6wmwzbo.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162422157 7704 80.91.229.2 (1 Nov 2006 23:02:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 23:02:37 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org, rms@gnu.org, Michael Welsh Duggan , Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 02 00:02:33 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GfP6P-0000IQ-6x for ged-emacs-devel@m.gmane.org; Thu, 02 Nov 2006 00:02:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfP6O-0002RX-T4 for ged-emacs-devel@m.gmane.org; Wed, 01 Nov 2006 18:02:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfP6C-0002OP-6U for emacs-devel@gnu.org; Wed, 01 Nov 2006 18:02:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfP6B-0002Mm-6M for emacs-devel@gnu.org; Wed, 01 Nov 2006 18:02:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfP6B-0002MZ-2v for emacs-devel@gnu.org; Wed, 01 Nov 2006 18:02:19 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfP6A-00072i-OG for emacs-devel@gnu.org; Wed, 01 Nov 2006 18:02:18 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GfP62-0003wE-TF; Wed, 01 Nov 2006 18:02:11 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 547EF1C460D5; Thu, 2 Nov 2006 00:01:07 +0100 (CET) Original-To: Chong Yidong In-Reply-To: <87r6wmwzbo.fsf@stupidchicken.com> (Chong Yidong's message of "Wed\, 01 Nov 2006 17\:56\:43 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61580 Archived-At: Chong Yidong writes: > Andreas Schwab writes: > >>> Okay, I looked at this, and now I'm not sure there's any bug. If you >>> specify an --eval command-line arg that deletes the only frame, what >>> else could Emacs possibly do other than abort execution? >> >> IMHO there are two options: >> >> - refuse to delete the frame despite FORCE, >> - exit gracefully. 3: stay around in case gnuclient will open another window. But I don't think that emacsclient has this functionality, and we'd probably need the multi-tty branch. > The latter is not difficult to arrange: > > *** emacs/lisp/startup.el.~1.419.~ 2006-09-26 13:10:39.000000000 -0400 > --- emacs/lisp/startup.el 2006-11-01 17:55:11.000000000 -0500 > *************** > *** 1877,1883 **** > (setq line 0) > (unless (< column 1) > (move-to-column (1- column))) > ! (setq column 0)))))))) > > ;; If 3 or more files visited, and not all visible, > ;; show user what they all are. But leave the last one current. > --- 1877,1884 ---- > (setq line 0) > (unless (< column 1) > (move-to-column (1- column))) > ! (setq column 0)))))) > ! (unless (frame-live-p (selected-frame)) (kill-emacs nil)))) Does this not do to much when we delete the last frame on the current display/terminal, but there are still frames on other displays? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum