From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Emacs making questions while starting in daemon mode Date: Tue, 06 Jul 2010 13:29:41 -0400 Message-ID: References: <87wrt9j3mj.fsf@telefonica.net> <87bpali8vk.fsf@telefonica.net> <8739vxi6qg.fsf@telefonica.net> <87y6dohdq1.fsf@telefonica.net> <87ocekhafx.fsf@telefonica.net> <87630sa6w9.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278437402 6821 80.91.229.12 (6 Jul 2010 17:30:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 17:30:02 +0000 (UTC) Cc: =?iso-8859-1?Q?=D3scar?= Fuentes , Chad Brown , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 06 19:29:59 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 1OWBy1-0007tT-NI for ged-emacs-devel@m.gmane.org; Tue, 06 Jul 2010 19:29:58 +0200 Original-Received: from localhost ([127.0.0.1]:36661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWBy1-0005UX-5F for ged-emacs-devel@m.gmane.org; Tue, 06 Jul 2010 13:29:57 -0400 Original-Received: from [199.232.76.173] (port=60189 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWBxn-0005LG-0t for emacs-devel@gnu.org; Tue, 06 Jul 2010 13:29:43 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OWBxl-00077W-SM for emacs-devel@gnu.org; Tue, 06 Jul 2010 13:29:42 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:58191) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OWBxl-00077S-MC for emacs-devel@gnu.org; Tue, 06 Jul 2010 13:29:41 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OWBxl-0006W8-Af; Tue, 06 Jul 2010 13:29:41 -0400 In-Reply-To: <87630sa6w9.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Wed\, 07 Jul 2010 01\:53\:42 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:126844 Archived-At: "Stephen J. Turnbull" writes: > Chad Brown writes: > > > 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? > > Because in many cases you won't find. At least one of the systems I > run Emacsen on is headless. > > I think Dan is right -- this is basically a user error. And I think > that =D3scar is also right ... anything that tries to access a > non-existent console should signal an error. That happens already: $ cat .emacs (yes-or-no-p "Question?") $ emacs --daemon < /dev/null emacs --daemon < /dev/null ("emacs") Question?(yes or no) Warning (initialization): An error occurred while load= ing `/home/dann/.emacs': error: Error reading from stdin To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Starting Emacs daemon. I suspect that the tool he uses to start emacs provides some bogus stdin and emacs dutifully waits for input from there.