unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Trey Ethan Harris <treyharris@gmail.com>
Cc: 13697@debbugs.gnu.org
Subject: bug#13697: A way to tell if Emacs can interact with the user
Date: Wed, 03 Apr 2019 18:56:26 -0400	[thread overview]
Message-ID: <87ef6ig0kl.fsf_-_@gmail.com> (raw)
In-Reply-To: <CALKJ+EvWOenkEXDweudrwacnRyRpRF=rc1HFW_Ygega79c6Wmw@mail.gmail.com> (Trey Ethan Harris's message of "Wed, 3 Apr 2019 17:01:38 -0400")

Trey Ethan Harris <treyharris@gmail.com> writes:

> As described in the Emacs Stack Exchange question,
> https://emacs.stackexchange.com/questions/32692/daemon-mode-defer-interactive-prompts-on-startup/
> , this bug seems to be applicable and should be reopened.

[I've restored the original bug title as the subject, since "reopened"
is a bit lacking in context.  And by the way, this bug was never closed
in the first place]

> But Emacs _could,_ I think, provide a 99% solution:
>
> 1. Intercept interaction functions like `yes-or-no-p` and password prompts
> running in asynchronous threads, allowing them to block their thread
> 2. Automatically convert interaction in other threads into a warning failure
> 3. Continue execution of other threads so that the server can start
> 4. Upon first connection with an emacsclient, display the warnings
> (presumably by popping up *Warnings*) so that the user is aware of what may
> have failed in initialization due to inability to interact
> 5. Take the user through the queued blocked threads so they can complete
> the threaded interactions.

Hmm, I'm not sure where all these threads you're talking about will come
from.  Emacs is still mostly single-threaded, and we still have stuff
like Bug#25214 "Interacting with user from threads other than the
primary" open.





  reply	other threads:[~2019-04-03 22:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12 17:02 bug#13697: A way to tell if Emacs can interact with the user Glenn Morris
2019-04-03 21:01 ` bug#13697: Reopening Trey Ethan Harris
2019-04-03 22:56   ` Noam Postavsky [this message]
2019-04-03 23:25     ` bug#13697: A way to tell if Emacs can interact with the user Trey Ethan Harris
2019-04-04 12:59   ` bug#13697: Reopening Eli Zaretskii
2021-02-13  9:31 ` bug#13697: A way to tell if Emacs can interact with the user Glenn Morris
2021-02-13 11:38   ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ef6ig0kl.fsf_-_@gmail.com \
    --to=npostavs@gmail.com \
    --cc=13697@debbugs.gnu.org \
    --cc=treyharris@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).