From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs making questions while starting in daemon mode Date: Tue, 06 Jul 2010 19:07:22 +0200 Message-ID: <4C3362CA.2090604@swipnet.se> 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278436063 1182 80.91.229.12 (6 Jul 2010 17:07:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 17:07:43 +0000 (UTC) Cc: =?ISO-8859-1?Q?=D3scar_Fuentes?= , emacs-devel@gnu.org To: Chad Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 06 19:07:42 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 1OWBcQ-0003t9-Fs for ged-emacs-devel@m.gmane.org; Tue, 06 Jul 2010 19:07:38 +0200 Original-Received: from localhost ([127.0.0.1]:59534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWBcP-0001f7-UO for ged-emacs-devel@m.gmane.org; Tue, 06 Jul 2010 13:07:37 -0400 Original-Received: from [140.186.70.92] (port=56743 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWBcI-0001ag-Bk for emacs-devel@gnu.org; Tue, 06 Jul 2010 13:07:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWBcG-0007KF-PS for emacs-devel@gnu.org; Tue, 06 Jul 2010 13:07:30 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]:56270) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWBcG-0007JT-FV for emacs-devel@gnu.org; Tue, 06 Jul 2010 13:07:28 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 4866EEBC0F for ; Tue, 6 Jul 2010 19:07:25 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aus4AFb/MkxV4S0jPGdsb2JhbACHb5gSDAEBAQE1LcF6hSUEkV4 X-IronPort-AV: E=Sophos;i="4.53,547,1272837600"; d="scan'208";a="100420725" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb2.telenor.se with ESMTP; 06 Jul 2010 19:07:24 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 2CBC17FA05A; Tue, 6 Jul 2010 19:07:24 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:126841 Archived-At: Chad Brown skrev 2010-07-06 18.27: > 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. >> >> The final outcome with that approach is that the user sees an emacs th= at >> did not complete the initialization, which is similar to the effects o= f 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 abou= t > bull-ahead-or-hang) if it's run --daemon? The existing code used if yo= u > try to quit emacs using a mouse and the menu-bar (assuming a customized > confirm-kill-emacs) ought to be a usable guide. You can start emacs --daemon in a non-GUI environment and then connect to= it=20 from a GUI or non-GUI environment. So opening a window may not be possib= le=20 for the --daemon instance. It may be hard, but if emacs is started with --daemon, it could perhaps d= elay=20 running .emacs until the first connection to it is made? That way=20 errors/questions can be shown to the first client. Jan D.