all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.