emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs making questions while starting in daemon mode


From: Jan Djärv
Subject: Re: Emacs making questions while starting in daemon mode
Date: Tue, 06 Jul 2010 19:07:22 +0200
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



Chad Brown skrev 2010-07-06 18.27:
On Jul 6, 2010, at 8:55 AM, Óscar 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 that
did not complete the initialization, which is similar to the effects of 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 about
bull-ahead-or-hang) if it's run --daemon?  The existing code used if you
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 from a GUI or non-GUI environment. So opening a window may not be possible for the --daemon instance.

It may be hard, but if emacs is started with --daemon, it could perhaps delay running .emacs until the first connection to it is made? That way errors/questions can be shown to the first client.

        Jan D.



reply via email to

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