emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: y-or-n-p and emacs --daemon


From: Chong Yidong
Subject: Re: y-or-n-p and emacs --daemon
Date: Wed, 03 Dec 2008 14:33:55 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Espen Wiborg <address@hidden> writes:

>>    $ emacs-23 -Q --daemon --eval '(y-or-n-p "hello? ")'
>>
>> 1. It hangs indefinitely,
>> 2. it does not detach properly (it forks, but the parent doesn't exit),
>> 3. it doesn't start the server.
>>
>> Now the problem is that y-or-n-p is called from many places, so
>> depending on the configuration there is some chance that Emacs will
>> ask for user interaction before initialisation is finished. There is
>> even one in server-start (which AFAICS won't be triggered in daemon
>> mode, but still...).
>
> Actually, this yes-or-no-p *is* triggered in daemon mode, but only
> (AFAICT) in the case uncovered by bug #1310, where a client's X
> connection is lost and the daemon tries to shut down.

The only thing I can think of is to make y-or-n-p and yes-or-no-p
default to "no" when only the daemon's dummy terminal is open.  Does
anyone have a better suggestion?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]