[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6945: active-minibuffer-window returns nil when prompt overwritten b
bug#6945: active-minibuffer-window returns nil when prompt overwritten by message
Mon, 30 Aug 2010 15:46:30 +0200
On Mon, Aug 30, 2010 at 3:11 PM, Andreas Schwab <address@hidden> wrote:
> Lennart Borgman <address@hidden> writes:
>> (defun temp-active-mb ()
>> (message "active-minibuffer-window = %s" (active-minibuffer-window)))
>> (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.)