bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#6945: active-minibuffer-window returns nil when prompt overwritten b


From: Andreas Schwab
Subject: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message
Date: Mon, 30 Aug 2010 15:11:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

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.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

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