unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: miha@kamnitnik.top
Cc: 51263@debbugs.gnu.org
Subject: bug#51263: 29.0.50; [PATCH] Use run-at-time to read a password in comint
Date: Mon, 18 Oct 2021 15:25:54 +0200	[thread overview]
Message-ID: <87k0iaihwd.fsf@gnus.org> (raw)
In-Reply-To: <87k0ia4kfg.fsf@miha-pc> (miha@kamnitnik.top's message of "Mon, 18 Oct 2021 13:54:59 +0200")

miha@kamnitnik.top writes:

> I've come up with a solution: using (run-at-time 0 ...), we can prompt
> for a password after the filter function finishes execution.  The
> attached patch implements this for comint, eshell and term.el.

Seems to work very nicely -- I tried mixing some async output while
prompting for a "su" password, and I couldn't see any glitches, so I've
pushed your patch to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2021-10-18 13:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-18 11:54 bug#51263: 29.0.50; [PATCH] Use run-at-time to read a password in comint miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-18 13:25 ` Lars Ingebrigtsen [this message]

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=87k0iaihwd.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=51263@debbugs.gnu.org \
    --cc=miha@kamnitnik.top \
    /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).