all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6945: active-minibuffer-window returns nil when prompt overwritten by message
@ 2010-08-30 10:30 Lennart Borgman
  2010-08-30 12:44 ` Stephen Berman
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Lennart Borgman @ 2010-08-30 10:30 UTC (permalink / raw)
  To: 6945

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".

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-08-20 18:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-08-20 18:25 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.