From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message Date: Mon, 30 Aug 2010 15:46:30 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283179041 17372 80.91.229.12 (30 Aug 2010 14:37:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 14:37:21 +0000 (UTC) Cc: 6945@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 30 16:37:19 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq5Tv-0003GW-Ar for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Aug 2010 16:37:19 +0200 Original-Received: from localhost ([127.0.0.1]:44555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq5Op-0003oL-33 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Aug 2010 10:31:51 -0400 Original-Received: from [140.186.70.92] (port=51412 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq5JU-0000vP-0g for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 10:26:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq561-000504-Nq for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 10:12:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36992) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq561-0004zv-MU for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 10:12:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oq4gU-00046T-Ci; Mon, 30 Aug 2010 09:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Aug 2010 13:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6945 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6945-submit@debbugs.gnu.org id=B6945.128317596115767 (code B ref 6945); Mon, 30 Aug 2010 13:46:02 +0000 Original-Received: (at 6945) by debbugs.gnu.org; 30 Aug 2010 13:46:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq4gS-00046G-Mu for submit@debbugs.gnu.org; Mon, 30 Aug 2010 09:46:00 -0400 Original-Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq4gQ-00046B-Eg for 6945@debbugs.gnu.org; Mon, 30 Aug 2010 09:45:58 -0400 Original-Received: by qwc9 with SMTP id 9so4756794qwc.3 for <6945@debbugs.gnu.org>; Mon, 30 Aug 2010 06:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Fxl967k5XsOzaai368Ls3uk3k5bcQbwnnYoi2Js76Ck=; b=cocVfBofs3a1z7nOojMgC7igvxkqtII9/lHuxACXvOQVdz7yB+wFe7eIv3wZbpyqwO uk5+oc4eknj4Oabzf7P7d31UwtNvN5ASgj8b0dHky9rpgecMA5s4wdzXxaWUSi+xBBK6 mL19ElEsBaXdj1tZuJCiJcQwOEKMRhCY1KfQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=PzX8Usdicd4isqhX9WUTa2C0Zk9AQi6IMMeFbwjijzpmyy+/I58VBUkD8J4AnOP1jP tdQP7ulsfTpOX4Lmv/mCnoYq7dlFDFfd3hO945y8DryQbx/V9EG6IhR8/jaBsDTR8jue AxiE3EY6zCRWOV4D1wMveZoXCDO9eG2dc4BMM= Original-Received: by 10.229.37.3 with SMTP id v3mr3060683qcd.169.1283176010216; Mon, 30 Aug 2010 06:46:50 -0700 (PDT) Original-Received: by 10.229.20.139 with HTTP; Mon, 30 Aug 2010 06:46:30 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 30 Aug 2010 09:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39826 Archived-At: On Mon, Aug 30, 2010 at 3:11 PM, Andreas Schwab wro= te: > Lennart Borgman writes: > >> (defun temp-active-mb () >> =C2=A0 (message "active-minibuffer-window =3D %s" (active-minibuffer-win= dow))) >> >> (progn >> =C2=A0 (run-with-idle-timer 1 nil 'message "idle message") >> =C2=A0 (run-with-idle-timer 2 nil 'temp-active-mb) >> =C2=A0 (y-or-n-p "Prompt: ") >> =C2=A0 ) >> >> This gives me the message "active-minibuffer-window =3D nil". > > y-or-n-p does not use the minibuffer, so this is correct. > >> Is there any way then to discover whether Emacs is displaying a prompt > > This is just a message in the echo area. Thanks, I see. I had forgotten that. Correct, but very inconvenient. Is there a way to detect this situation then? (Emacs is "paused", waiting for input while a "prompt" is displayed.)