From: "Óscar Fuentes" <ofv@wanadoo.es>
To: emacs-devel@gnu.org
Subject: Re: Emacs making questions while starting in daemon mode
Date: Tue, 06 Jul 2010 06:17:43 +0200 [thread overview]
Message-ID: <8739vxi6qg.fsf@telefonica.net> (raw)
In-Reply-To: yxqvd8txntz.fsf@fencepost.gnu.org
Dan Nicolaescu <dann@gnu.org> writes:
>> I'm thinking on the case where there is no terminal, or you can not
>> assume that there is a human watching it.
>
> If there's no terminal, the only absolutely safe way is to use:
> emacs -Q --daemon
This is precisely to avoid the case where emacs asks for user input
while initializing, isn't it?
>>> This assumes that there's a default correct answer to any of these
>>> questions, which is doubtful.
>>
>> The absolutely wrong answer is to hang until the user figures out that
>> emacs' initialization froze and starts pulling his hair about the
>> cause. Then, if the cause is on emacs's own code, he needs to find a
>> workaround.
>
> Can you show a case where it's hanging? It should not detach from the
> tty until .emacs is processed.
If you start emacs --daemon from KRunner, for instance, there is no
visible console. (KRunner is a KDE tool used for executing applications
by its name. I guess Gnome has something similar.)
>> IMO, an acceptable "answer" on those cases is to act as if the user
>> pressed C-g to abort the question, leave some notice on *Messages* and
>> keep going with the initialization.
>
> How is that different than having a default answer of "no" (or "yes")?
"yes" and "no" can express very different intentions depending on the
question ("are you sure you want to launch the ICBM?" "start process for
establishing world peace?") C-g means "cancel," which arguably can cause
confussion too, but less so, I hope.
>> Is there a predicate that tells if emacs is initializing?
>
> after-init-time might be, depends on what you need.
Thanks.
next prev parent reply other threads:[~2010-07-06 4:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 16:27 Emacs making questions while starting in daemon mode Óscar Fuentes
2010-07-06 2:39 ` Dan Nicolaescu
2010-07-06 3:31 ` Óscar Fuentes
2010-07-06 3:59 ` Dan Nicolaescu
2010-07-06 4:17 ` Óscar Fuentes [this message]
2010-07-06 4:42 ` Dan Nicolaescu
2010-07-06 14:44 ` Óscar Fuentes
2010-07-06 15:29 ` Dan Nicolaescu
2010-07-06 15:55 ` Óscar Fuentes
2010-07-06 16:27 ` Chad Brown
2010-07-06 16:53 ` Stephen J. Turnbull
2010-07-06 17:29 ` Dan Nicolaescu
2010-07-06 18:13 ` Jan Djärv
2010-07-06 18:28 ` Dan Nicolaescu
2010-07-06 19:11 ` Chad Brown
2010-07-06 17:07 ` Jan Djärv
2010-07-06 17:26 ` Chong Yidong
2010-07-06 18:11 ` Jan Djärv
2010-07-06 16:44 ` Dan Nicolaescu
2010-07-06 4:04 ` Óscar Fuentes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739vxi6qg.fsf@telefonica.net \
--to=ofv@wanadoo.es \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.