From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Daemon mode wishlist Date: Thu, 02 Oct 2008 14:59:30 -0400 Message-ID: References: <87zllug0gn.fsf@elegiac.orebokech.com> <200809262027.m8QKRn8q029499@mothra.ics.uci.edu> <87r675gbgc.fsf@elegiac.orebokech.com> <87iqsadga4.fsf@elegiac.orebokech.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222981732 27773 80.91.229.12 (2 Oct 2008 21:08:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2008 21:08:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Romain Francoise Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 02 23:09:50 2008 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.50) id 1KlVQg-0001t5-U4 for ged-emacs-devel@m.gmane.org; Thu, 02 Oct 2008 23:09:47 +0200 Original-Received: from localhost ([127.0.0.1]:39829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlVPd-0000Ah-R0 for ged-emacs-devel@m.gmane.org; Thu, 02 Oct 2008 17:08:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlVPX-00009g-2e for emacs-devel@gnu.org; Thu, 02 Oct 2008 17:08:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlVPV-000091-P0 for emacs-devel@gnu.org; Thu, 02 Oct 2008 17:08:34 -0400 Original-Received: from [199.232.76.173] (port=57012 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlVPV-00008x-NO for emacs-devel@gnu.org; Thu, 02 Oct 2008 17:08:33 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:34831) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KlVPU-0002XM-Us for emacs-devel@gnu.org; Thu, 02 Oct 2008 17:08:33 -0400 Original-Received: from ceviche.home (vpn-132-204-232-44.acd.umontreal.ca [132.204.232.44]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m92L8vPK022772; Thu, 2 Oct 2008 17:08:58 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 45C37B456B; Thu, 2 Oct 2008 14:59:30 -0400 (EDT) In-Reply-To: <87iqsadga4.fsf@elegiac.orebokech.com> (Romain Francoise's message of "Thu, 02 Oct 2008 20:05:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3117=0 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:104310 Archived-At: >> All of these new features will have to wait. The only thing we >> should do at this stage is move the (server-start) to after >> processing .emacs and --eval. > Unfortunately this causes a problem if .emacs prompts the user for > something, as `desktop-read' does if a stale lock exists for the > desktop file. It calls `y-or-n-p' but the user cannot see nor > answer the question because there is no initial frame, and the > server is not yet started. :( > Any suggestions on how we should handle this? Should desktop.el be > changed to not prompt? By fixing the other problem, the one where "emacs --daemon" returns before the server is ready. Basically, all the .emacs should be read as if we're running with "--batch", and only at the end should we detach from the terminal. As for desktop-read, it will probably need to be reworked to do the right thing with --daemon. Stefan