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:57:41 +0200 Message-ID: References: <871v9gl16n.fsf@escher.home> <87sk1wjjo4.fsf@escher.home> 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 1283177390 8909 80.91.229.12 (30 Aug 2010 14:09:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 14:09:50 +0000 (UTC) Cc: 6945@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 30 16:09:49 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 1Oq53T-00049c-Uw for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Aug 2010 16:09:48 +0200 Original-Received: from localhost ([127.0.0.1]:36586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq53T-0008Aa-Av for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Aug 2010 10:09:47 -0400 Original-Received: from [140.186.70.92] (port=34842 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq53L-00087F-7Q for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 10:09:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq53K-0004Br-91 for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 10:09:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36971) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq53K-0004Bf-7c for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 10:09:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oq4s6-0004Bj-1u; Mon, 30 Aug 2010 09:58: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:58: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.128317664316091 (code B ref 6945); Mon, 30 Aug 2010 13:58:02 +0000 Original-Received: (at 6945) by debbugs.gnu.org; 30 Aug 2010 13:57:23 +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 1Oq4rS-0004BU-RQ for submit@debbugs.gnu.org; Mon, 30 Aug 2010 09:57:23 -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 1Oq4rQ-0004BO-AN for 6945@debbugs.gnu.org; Mon, 30 Aug 2010 09:57:21 -0400 Original-Received: by qwc9 with SMTP id 9so4765725qwc.3 for <6945@debbugs.gnu.org>; Mon, 30 Aug 2010 06:58:55 -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=OTf5peEOOWnX9GwajM8Xe3EttwE3/PFQEviEU6tiPhU=; b=Q5qT93+CDnNy+eawokSLHsv5skSkHl25372K+RutmN5rj6wnmn/68TxrUxf5VXELCx sjED/PmQhZSSCRB6tdlUooSCq8xMTimWR4ZGE63LvlAvj5SPEs7Uza+y7cWpScJzLpxS ETNzcQBbSO0Q47HpimcZWI3nfWxS1nqH1B9Rs= 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=e9//Lrlp9LfpnTOCH8W+uKKKOFC58BQ5WEul9YmMcoWWAyX1AJ50bCY8h7vJ0jLsxr vXN3V30eT/es/2R+0PBbP9UqZUl96XSgpsuF1DznPKI6YKZqFEsBETLi9kja1URq2+gF JSYJrLrKz+aUay5SE91GPO/oQnHVqKmKAjYC0= Original-Received: by 10.229.37.3 with SMTP id v3mr3073769qcd.169.1283176681374; Mon, 30 Aug 2010 06:58:01 -0700 (PDT) Original-Received: by 10.229.20.139 with HTTP; Mon, 30 Aug 2010 06:57:41 -0700 (PDT) In-Reply-To: <87sk1wjjo4.fsf@escher.home> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 30 Aug 2010 09:58: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:39825 Archived-At: On Mon, Aug 30, 2010 at 3:48 PM, Stephen Berman wr= ote: > > I guess I misunderstood -- I thought you were reporting you saw no > prompt and could not get it with the above recipe. =C2=A0As for > active-minibuffer-window not returning a window, maybe I still > misunderstand, but I get the message "active-minibuffer-window =3D nil" That is what I get too. > not only with the above progn, but also with this: > > (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) > > and even just with this: > > (run-with-idle-timer 2 nil 'temp-active-mb) > > So the prompt seems to make no difference. =C2=A0Or do you see (or expect= ) > something different? I expected active-minibuffer-window to return a window, but as Andreas has pointed out y-or-n-p is implemented in a different way. It just call `message' and then read a key from the user. However I would like to detect such situations too. From the users point of view they are very similar to other prompts. (If you replace `y-or-n-p' with `yes-or-no-p' then active-minibuffer-window will return a window.)