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: Mon, 05 Jul 2010 22:39:01 -0400 Message-ID: References: <87wrt9j3mj.fsf@telefonica.net> 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 1278383952 25858 80.91.229.12 (6 Jul 2010 02:39:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 02:39:12 +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 04:39:10 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 1OVy3x-0007bk-1c for ged-emacs-devel@m.gmane.org; Tue, 06 Jul 2010 04:39:09 +0200 Original-Received: from localhost ([127.0.0.1]:56996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVy3w-0007jt-G8 for ged-emacs-devel@m.gmane.org; Mon, 05 Jul 2010 22:39:08 -0400 Original-Received: from [199.232.76.173] (port=33170 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVy3q-0007jo-HW for emacs-devel@gnu.org; Mon, 05 Jul 2010 22:39:02 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OVy3p-0000PW-H3 for emacs-devel@gnu.org; Mon, 05 Jul 2010 22:39:02 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:52490) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OVy3p-0000PS-Ac for emacs-devel@gnu.org; Mon, 05 Jul 2010 22:39:01 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OVy3p-0005dD-18; Mon, 05 Jul 2010 22:39:01 -0400 In-Reply-To: <87wrt9j3mj.fsf@telefonica.net> (=?iso-8859-1?Q?=22=D3scar?= Fuentes"'s message of "Mon\, 05 Jul 2010 18\:27\:16 +0200") 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:126813 Archived-At: =D3scar Fuentes writes: > I've just detected the second instance of a problem that consists on > asking questions to the user while emacs is starting in daemon mode (see > bug#6567) Unless the user is starting emacs from a console, he can't You can avoid that one by customizing `vc-follow-symlinks'. Maybe you can make an argument in that bug report for changing the default for the above variable... > notice the question and emacs sits there forever waiting for an > answer. From the POV of the user, the emacs daemon hangs. If "emacs --daemon" asks a question when starting, one should be able to answer it from the terminal, the same way it is done when emacs is started in batch mode. In general such a question is due to what the user has in .emacs, we can't really prevent the user from shooting himself in the foot. > Maybe all the features that request input from the user should bail out > if they are invoked while in daemon mode and there is no console nor > frame where to interact? I'm thinking of y-or-n-p, ask-user-about*, > read-from-minibuffer, read-password, etc This assumes that there's a default correct answer to any of these questions, which is doubtful.