help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detect content in minibuffer


From: Miguel Guedes
Subject: Detect content in minibuffer
Date: Thu, 30 Jan 2014 14:06:56 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Thunderbird/27.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]