From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chad Brown Newsgroups: gmane.emacs.devel Subject: Re: Emacs making questions while starting in daemon mode Date: Tue, 6 Jul 2010 09:27:53 -0700 Message-ID: References: <87wrt9j3mj.fsf@telefonica.net> <87bpali8vk.fsf@telefonica.net> <8739vxi6qg.fsf@telefonica.net> <87y6dohdq1.fsf@telefonica.net> <87ocekhafx.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278433689 23659 80.91.229.12 (6 Jul 2010 16:28:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 16:28:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 06 18:28:08 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWB0B-0007Ff-Om for ged-emacs-devel@m.gmane.org; Tue, 06 Jul 2010 18:28:08 +0200 Original-Received: from localhost ([127.0.0.1]:38078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWB0B-0000dY-2X for ged-emacs-devel@m.gmane.org; Tue, 06 Jul 2010 12:28:07 -0400 Original-Received: from [140.186.70.92] (port=48426 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWB03-0000Y7-TP for emacs-devel@gnu.org; Tue, 06 Jul 2010 12:28:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWB02-0000tB-Nq for emacs-devel@gnu.org; Tue, 06 Jul 2010 12:27:59 -0400 Original-Received: from dmz-mailsec-scanner-1.mit.edu ([18.9.25.12]:55259) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWB02-0000t4-MI for emacs-devel@gnu.org; Tue, 06 Jul 2010 12:27:58 -0400 X-AuditID: 1209190c-b7c34ae000000a06-1e-4c33598e299a Original-Received: from mailhub-auth-2.mit.edu (MAILHUB-AUTH-2.MIT.EDU [18.7.62.36]) by dmz-mailsec-scanner-1.mit.edu (Symantec Brightmail Gateway) with SMTP id 75.D1.02566.E89533C4; Tue, 6 Jul 2010 12:27:58 -0400 (EDT) Original-Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id o66GRv7S021373; Tue, 6 Jul 2010 12:27:57 -0400 Original-Received: from [10.0.1.6] (c-98-247-149-76.hsd1.wa.comcast.net [98.247.149.76]) (authenticated bits=0) (User authenticated as yandros@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o66GRsx2014959 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 6 Jul 2010 12:27:56 -0400 (EDT) In-Reply-To: <87ocekhafx.fsf@telefonica.net> X-Mailer: Apple Mail (2.1081) X-Brightmail-Tracker: AAAAARTzSz4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:126838 Archived-At: On Jul 6, 2010, at 8:55 AM, =D3scar Fuentes wrote: > C-g signal an error, which means that wathever is waiting for a return > value is aborted as well. >=20 > The final outcome with that approach is that the user sees an emacs = that > did not complete the initialization, which is similar to the effects = of > a faulty .emacs. There are probably roughly as many annoying corner cases in the `bull = ahead' strategy as there are in the `wait for input' strategy. Rather = than trying to weigh and balance exceptional cases, why don't we look = into having emacs open a window to ask those questions (or at least ask = about bull-ahead-or-hang) if it's run --daemon? The existing code used = if you try to quit emacs using a mouse and the menu-bar (assuming a = customized confirm-kill-emacs) ought to be a usable guide. I don't (at the moment) have good access to a system where emacs = --daemon is a useful option, which is my excuse for offering ideas = rather than code. My apologies. *Chad=