unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 6945@debbugs.gnu.org
Subject: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message
Date: Mon, 30 Aug 2010 15:46:30 +0200	[thread overview]
Message-ID: <AANLkTikoxQ2uQYjXwi5C1ptGCsbkY92ADYxCghe+xhbk@mail.gmail.com> (raw)
In-Reply-To: <m362ysmeil.fsf@hase.home>

On Mon, Aug 30, 2010 at 3:11 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> (defun temp-active-mb ()
>>   (message "active-minibuffer-window = %s" (active-minibuffer-window)))
>>
>> (progn
>>   (run-with-idle-timer 1 nil 'message "idle message")
>>   (run-with-idle-timer 2 nil 'temp-active-mb)
>>   (y-or-n-p "Prompt: ")
>>   )
>>
>> This gives me the message "active-minibuffer-window = nil".
>
> y-or-n-p does not use the minibuffer, so this is correct.
>
>> Is there any way then to discover whether Emacs is displaying a prompt
>
> This is just a message in the echo area.

Thanks, I see. I had forgotten that.

Correct, but very inconvenient.

Is there a way to detect this situation then? (Emacs is "paused",
waiting for input while a "prompt" is displayed.)





  reply	other threads:[~2010-08-30 13:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-30 10:30 bug#6945: active-minibuffer-window returns nil when prompt overwritten by message Lennart Borgman
2010-08-30 12:44 ` Stephen Berman
2010-08-30 13:09   ` Lennart Borgman
2010-08-30 13:48     ` Stephen Berman
2010-08-30 13:57       ` Lennart Borgman
2010-08-30 13:11 ` Andreas Schwab
2010-08-30 13:46   ` Lennart Borgman [this message]
2020-08-20 18:25 ` 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=AANLkTikoxQ2uQYjXwi5C1ptGCsbkY92ADYxCghe+xhbk@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=6945@debbugs.gnu.org \
    --cc=schwab@linux-m68k.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 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).