GNU bug report logs - #6945
active-minibuffer-window returns nil when prompt overwritten by message

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Mon, 30 Aug 2010 11:07:02 UTC

Severity: wishlist

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 6945 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6945 <at> debbugs.gnu.org
Subject: Re: bug#6945: active-minibuffer-window returns nil when prompt
	overwritten by message
Date: Mon, 30 Aug 2010 14:44:48 +0200
On Mon, 30 Aug 2010 12:30:37 +0200 Lennart Borgman <lennart.borgman <at> gmail.com> wrote:

> Eval the following
>
>
> (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".

When I eval the above sexps on GNU Emacs 24.0.50.1 (i686-pc-linux-gnu,
GTK+ Version 2.18.6) of 2010-08-22 on escher, I first briefly see the
message "Prompt: (y or n)", then "idle message", then
"active-minibuffer-window = " with the cursor after "= "; as soon as I
type any other key, I get "Prompt: (y or n)" again.

> Is there any way then to discover whether Emacs is displaying a prompt
> and waiting for input?

Are you trying this on MS-Windows?  If so, it seems to be a problem
there.

Steve Berman




This bug report was last modified 4 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.