From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miguel Guedes Newsgroups: gmane.emacs.help Subject: Detect content in minibuffer Date: Thu, 30 Jan 2014 14:06:56 +0000 Message-ID: <52ea5c80$0$29463$862e30e2@ngroups.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391091010 23431 80.91.229.3 (30 Jan 2014 14:10:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 14:10:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 30 15:10:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8sJv-00083S-0z for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 15:10:19 +0100 Original-Received: from localhost ([::1]:50050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8sJu-0005eu-I6 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 09:10:18 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.readnews.com!s09-01.readnews.com!not-for-mail Original-X-Trace: DXC=`EK[1^SYDU2YIX\i6FHV18G^cGF?V7mI4]G0e@Sk_WT2\KSWKcAGbb4Ok0<7meNZo9SPOg1WQbEJ; BXXXWM[BEj97=Gh3C; F>Z>SXJJ67f2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95802 Archived-At: 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