unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Detect content in minibuffer
@ 2014-01-30 14:06 Miguel Guedes
  2014-01-30 14:36 ` Nicolas Richard
  2014-01-30 15:13 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Miguel Guedes @ 2014-01-30 14:06 UTC (permalink / raw)
  To: help-gnu-emacs

I'm using the following to query the size of the buffer associated with 
the minibuffer but it always returns 0 even when there is a message 
currently being displayed in the echo area (say, documentation by eldoc 
or anything else).  The aim is to not echo anything when there's 
currently content in the echo area.

I've tried:

(with-current-buffer (window-buffer (minibuffer-window))
   (unless (> 0 (buffer-size))
     .
     :
     .

and [0],

(with-current-buffer (get-buffer " *Echo Area 0*")
   (unless (> 0 (buffer-size))
     .
     :
     .

What's wrong with my approach?

--
[0] Found excerpt referring to the echo area as "*Echo Area 0*" at 
http://www.emacswiki.org/emacs/EchoArea


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

end of thread, other threads:[~2014-01-30 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 14:06 Detect content in minibuffer Miguel Guedes
2014-01-30 14:36 ` Nicolas Richard
2014-01-30 15:13 ` Stefan Monnier

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