From unknown Sat Sep 06 08:34:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6945 <6945@debbugs.gnu.org> To: bug#6945 <6945@debbugs.gnu.org> Subject: Status: active-minibuffer-window returns nil when prompt overwritten by message Reply-To: bug#6945 <6945@debbugs.gnu.org> Date: Sat, 06 Sep 2025 15:34:43 +0000 retitle 6945 active-minibuffer-window returns nil when prompt overwritten b= y message reassign 6945 emacs submitter 6945 Lennart Borgman severity 6945 wishlist tag 6945 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 07:06:20 2010 Received: (at submit) by debbugs.gnu.org; 30 Aug 2010 11:06:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq2Bv-0002Ly-WC for submit@debbugs.gnu.org; Mon, 30 Aug 2010 07:06:20 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq2Bs-0002Lh-SF for submit@debbugs.gnu.org; Mon, 30 Aug 2010 07:06:17 -0400 Received: from lists.gnu.org ([199.232.76.165]:46750) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oq2DQ-0002LF-0t for submit@debbugs.gnu.org; Mon, 30 Aug 2010 07:07:52 -0400 Received: from [140.186.70.92] (port=58170 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq2DN-0002pv-Dx for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 07:07:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq1di-000618-7H for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 06:30:59 -0400 Received: from mail-qy0-f176.google.com ([209.85.216.176]:64395) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq1di-00060z-5B for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 06:30:58 -0400 Received: by qyk2 with SMTP id 2so5483606qyk.0 for ; Mon, 30 Aug 2010 03:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=TIoRoz5WGFfgiyrat001EatqLlI9n9Pg2PRdmNQPp5k=; b=Hgxx+r/ch1GgWeJWjJKcByqC3YnkHTHNmtHy44LXcK4EOPvvPUOcTws3zcqMx9f2hM FCu9gbuijSzZyZPLery1DQksFSFGjxHP6mANk80DRdmEOnw/qgNPtr0aDmruLEWxKw/M GO1KtnWMsSYREMFTtgTHPPWxpYLiI0hBxQZu8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=a5oVtWQHprk+YL/cZRmyYIzWQWA37jrSOACNjCB4EvFyREaDg6HXDzRPD4ZocpFcDE Es+IyEEhb064UkG2X4PMNyQSyc2PMzOenzjWnSc9ML+wFhYGTNX+to+5RygFsEyYkMX3 W3ooE/L6wMDVcimCazVhSstCQPMF/Gb7f2mqs= Received: by 10.229.245.75 with SMTP id lt11mr2888433qcb.139.1283164257242; Mon, 30 Aug 2010 03:30:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.20.139 with HTTP; Mon, 30 Aug 2010 03:30:37 -0700 (PDT) From: Lennart Borgman Date: Mon, 30 Aug 2010 12:30:37 +0200 Message-ID: Subject: active-minibuffer-window returns nil when prompt overwritten by message To: Emacs Bugs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) Eval the following (defun temp-active-mb () (message "active-minibuffer-window = %s" (active-minibuffer-window))) (progn (run-with-idle-timer 1 nil 'message "idle message") (run-with-idle-timer 2 nil 'temp-active-mb) (y-or-n-p "Prompt: ") ) This gives me the message "active-minibuffer-window = nil". Is there any way then to discover whether Emacs is displaying a prompt and waiting for input? From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 08:43:17 2010 Received: (at 6945) by debbugs.gnu.org; 30 Aug 2010 12:43:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq3hl-0003dt-GR for submit@debbugs.gnu.org; Mon, 30 Aug 2010 08:43:17 -0400 Received: from mailout-de.gmx.net ([213.165.64.22] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Oq3hj-0003dm-Kn for 6945@debbugs.gnu.org; Mon, 30 Aug 2010 08:43:16 -0400 Received: (qmail invoked by alias); 30 Aug 2010 12:44:49 -0000 Received: from i59F54421.versanet.de (EHLO escher.home) [89.245.68.33] by mail.gmx.net (mp052) with SMTP; 30 Aug 2010 14:44:49 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/gfp5gVH/g8hR/vGmBzBSZ/ces01IPdkAzRDif8z m2xIlFRMuEdyCM Received: by escher.home (Postfix, from userid 1000) id 4FE37103AD; Mon, 30 Aug 2010 14:44:48 +0200 (CEST) From: Stephen Berman To: Lennart Borgman Subject: Re: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message References: Date: Mon, 30 Aug 2010 14:44:48 +0200 In-Reply-To: (Lennart Borgman's message of "Mon, 30 Aug 2010 12:30:37 +0200") Message-ID: <871v9gl16n.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6945 Cc: 6945@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Mon, 30 Aug 2010 12:30:37 +0200 Lennart Borgman wrote: > Eval the following > > > (defun temp-active-mb () > (message "active-minibuffer-window = %s" (active-minibuffer-window))) > > (progn > (run-with-idle-timer 1 nil 'message "idle message") > (run-with-idle-timer 2 nil 'temp-active-mb) > (y-or-n-p "Prompt: ") > ) > > This gives me the message "active-minibuffer-window = nil". When I eval the above sexps on GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-08-22 on escher, I first briefly see the message "Prompt: (y or n)", then "idle message", then "active-minibuffer-window = " with the cursor after "= "; as soon as I type any other key, I get "Prompt: (y or n)" again. > Is there any way then to discover whether Emacs is displaying a prompt > and waiting for input? Are you trying this on MS-Windows? If so, it seems to be a problem there. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 09:08:27 2010 Received: (at 6945) by debbugs.gnu.org; 30 Aug 2010 13:08:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq465-0003pt-Td for submit@debbugs.gnu.org; Mon, 30 Aug 2010 09:08:27 -0400 Received: from mail-qy0-f179.google.com ([209.85.216.179]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq464-0003po-4n for 6945@debbugs.gnu.org; Mon, 30 Aug 2010 09:08:24 -0400 Received: by qyk9 with SMTP id 9so5172951qyk.3 for <6945@debbugs.gnu.org>; Mon, 30 Aug 2010 06:09:59 -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=uCx8yoV8ob6+0j+ua0TcPBF5eeoWseMB1DP21MSr3mc=; b=AGMxxqz37f+NbRyinZ4w0W3bT4FXg842uu+LxZpFx6oA2YG0e0dq++giHkVFxn6yCI D6Np5mDA/UrhTZa0vp2zdwFQyv3/0J3U8/g89JSFKuHNICfLnzt5/3of8tXFpN5uyHzK QiaXCHb8MFjWoS4/neyKzuktOUR3oqGnZslt4= 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=pBY6akGK+/rqMTYDFNJM6R2CMsivOUlg3XhWL4SsQfKq2JGtBhVDx85f4b+hLjBg/u TZcJWvfRThMxHhNXQNLqrhTW26A3Zm2djBz35XVj2w4i5EVjdHbksvs7KgXxDi3RZp0t GlwVZr24iJG2Hqom9iV7OJqeUgg0dXdf/vhfY= Received: by 10.229.240.76 with SMTP id kz12mr1254560qcb.65.1283173791010; Mon, 30 Aug 2010 06:09:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.20.139 with HTTP; Mon, 30 Aug 2010 06:09:23 -0700 (PDT) In-Reply-To: <871v9gl16n.fsf@escher.home> References: <871v9gl16n.fsf@escher.home> From: Lennart Borgman Date: Mon, 30 Aug 2010 15:09:23 +0200 Message-ID: Subject: Re: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message To: Stephen Berman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6945 Cc: 6945@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Mon, Aug 30, 2010 at 2:44 PM, Stephen Berman wr= ote: > On Mon, 30 Aug 2010 12:30:37 +0200 Lennart Borgman wrote: > >> Eval the following >> >> >> (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". > > When I eval the above sexps on GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, > GTK+ Version 2.18.6) of 2010-08-22 on escher, I first briefly see the > message "Prompt: (y or n)", then "idle message", then > "active-minibuffer-window =3D " with the cursor after "=3D "; as soon as = I > type any other key, I get "Prompt: (y or n)" again. > >> Is there any way then to discover whether Emacs is displaying a prompt >> and waiting for input? > > Are you trying this on MS-Windows? =C2=A0If so, it seems to be a problem > there. Thanks Stephen. However it looks to me from what you write above like active-minibuffer-window does not return a window in this case on GNU/Linux either. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 09:09:59 2010 Received: (at 6945) by debbugs.gnu.org; 30 Aug 2010 13:09:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq47a-0003qU-6K for submit@debbugs.gnu.org; Mon, 30 Aug 2010 09:09:58 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq47Y-0003qP-E2 for 6945@debbugs.gnu.org; Mon, 30 Aug 2010 09:09:57 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 659DF1C00316; Mon, 30 Aug 2010 15:11:31 +0200 (CEST) Received: from hase.home (ppp-88-217-115-85.dynamic.mnet-online.de [88.217.115.85]) by mail.mnet-online.de (Postfix) with ESMTP id 1C1511C0017E; Mon, 30 Aug 2010 15:11:31 +0200 (CEST) From: Andreas Schwab To: Lennart Borgman Subject: Re: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message References: X-Yow: I request a weekend in Havana with Phil Silvers! Date: Mon, 30 Aug 2010 15:11:30 +0200 In-Reply-To: (Lennart Borgman's message of "Mon, 30 Aug 2010 12:30:37 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6945 Cc: 6945@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Lennart Borgman writes: > (defun temp-active-mb () > (message "active-minibuffer-window = %s" (active-minibuffer-window))) > > (progn > (run-with-idle-timer 1 nil 'message "idle message") > (run-with-idle-timer 2 nil 'temp-active-mb) > (y-or-n-p "Prompt: ") > ) > > This gives me the message "active-minibuffer-window = 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. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 09:46:01 2010 Received: (at 6945) by debbugs.gnu.org; 30 Aug 2010 13:46:01 +0000 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 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 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= Received: by 10.229.37.3 with SMTP id v3mr3060683qcd.169.1283176010216; Mon, 30 Aug 2010 06:46:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.20.139 with HTTP; Mon, 30 Aug 2010 06:46:30 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Mon, 30 Aug 2010 15:46:30 +0200 Message-ID: Subject: Re: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6945 Cc: 6945@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) 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.) From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 09:46:57 2010 Received: (at 6945) by debbugs.gnu.org; 30 Aug 2010 13:46:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq4hM-00046s-Vc for submit@debbugs.gnu.org; Mon, 30 Aug 2010 09:46:57 -0400 Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Oq4hL-00046n-6X for 6945@debbugs.gnu.org; Mon, 30 Aug 2010 09:46:56 -0400 Received: (qmail invoked by alias); 30 Aug 2010 13:48:29 -0000 Received: from i59F54421.versanet.de (EHLO escher.home) [89.245.68.33] by mail.gmx.net (mp071) with SMTP; 30 Aug 2010 15:48:29 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18c4zcSMFwcR63u+BElCzZ3PqHaZ4/lHPu1sdSpoa R66Jaie0nNurU3 Received: by escher.home (Postfix, from userid 1000) id 39C1E103AD; Mon, 30 Aug 2010 15:48:28 +0200 (CEST) From: Stephen Berman To: Lennart Borgman Subject: Re: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message References: <871v9gl16n.fsf@escher.home> Date: Mon, 30 Aug 2010 15:48:27 +0200 In-Reply-To: (Lennart Borgman's message of "Mon, 30 Aug 2010 15:09:23 +0200") Message-ID: <87sk1wjjo4.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Y-GMX-Trusted: 0 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6945 Cc: 6945@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Mon, 30 Aug 2010 15:09:23 +0200 Lennart Borgman wrote: > On Mon, Aug 30, 2010 at 2:44 PM, Stephen Berman = wrote: >> On Mon, 30 Aug 2010 12:30:37 +0200 Lennart Borgman wrote: >> >>> Eval the following >>> >>> >>> (defun temp-active-mb () >>> =C2=A0 (message "active-minibuffer-window =3D %s" (active-minibuffer-wi= ndow))) >>> >>> (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". >> >> When I eval the above sexps on GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, >> GTK+ Version 2.18.6) of 2010-08-22 on escher, I first briefly see the >> message "Prompt: (y or n)", then "idle message", then >> "active-minibuffer-window =3D " with the cursor after "=3D "; as soon as= I Correction: "active-minibuffer-window =3D nil" and "=3D nil", i.e. same as = you. >> type any other key, I get "Prompt: (y or n)" again. >> >>> Is there any way then to discover whether Emacs is displaying a prompt >>> and waiting for input? >> >> Are you trying this on MS-Windows? =C2=A0If so, it seems to be a problem >> there. > > Thanks Stephen. However it looks to me from what you write above like > active-minibuffer-window does not return a window in this case on > GNU/Linux either. I guess I misunderstood -- I thought you were reporting you saw no prompt and could not get it with the above recipe. As for active-minibuffer-window not returning a window, maybe I still misunderstand, but I get the message "active-minibuffer-window =3D nil" not only with the above progn, but also with this: "active-minibuffer-window =3D nil". >> >> When I eval the above sexps on GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, >> GTK+ Version 2.18.6) of 2010-08-22 on escher, I first briefly see the >> message "Prompt: (y or n)", then "idle message", then >> "active-minibuffer-window =3D " with the cursor after "=3D "; as soon as= I Correction: "active-minibuffer-window =3D nil" and "=3D nil" >> type any other key, I get "Prompt: (y or n)" again. >> >>> Is there any way then to discover whether Emacs is displaying a prompt >>> and waiting for input? >> >> Are you trying this on MS-Windows? =C2=A0If so, it seems to be a problem >> there. > > Thanks Stephen. However it looks to me from what you write above like > active-minibuffer-window does not return a window in this case on > GNU/Linux either. I guess I misunderstood -- I thought you were reporting you saw no prompt and could not get it with the above recipe. As for active-minibuffer-window not returning a window, maybe I still misunderstand, but I get the message "active-minibuffer-window =3D nil" not only with the above progn, but also with this: "active-minibuffer-window =3D nil". >> >> When I eval the above sexps on GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, >> GTK+ Version 2.18.6) of 2010-08-22 on escher, I first briefly see the >> message "Prompt: (y or n)", then "idle message", then >> "active-minibuffer-window =3D " with the cursor after "=3D "; as soon as= I Correction: "active-minibuffer-window =3D nil" and "=3D nil" >> type any other key, I get "Prompt: (y or n)" again. >> >>> Is there any way then to discover whether Emacs is displaying a prompt >>> and waiting for input? >> >> Are you trying this on MS-Windows? =C2=A0If so, it seems to be a problem >> there. > > Thanks Stephen. However it looks to me from what you write above like > active-minibuffer-window does not return a window in this case on > GNU/Linux either. I guess I misunderstood -- I thought you were reporting you saw no prompt and could not get it with the above recipe. As for active-minibuffer-window not returning a window, maybe I still misunderstand, but I get the message "active-minibuffer-window =3D nil" not only with the above progn, but also with this: (progn (run-with-idle-timer 1 nil 'message "idle message") (run-with-idle-timer 2 nil 'temp-active-mb) ) and even just with this: (run-with-idle-timer 2 nil 'temp-active-mb) So the prompt seems to make no difference. Or do you see (or expect) something different? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 09:57:23 2010 Received: (at 6945) by debbugs.gnu.org; 30 Aug 2010 13:57:23 +0000 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 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 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= Received: by 10.229.37.3 with SMTP id v3mr3073769qcd.169.1283176681374; Mon, 30 Aug 2010 06:58:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.20.139 with HTTP; Mon, 30 Aug 2010 06:57:41 -0700 (PDT) In-Reply-To: <87sk1wjjo4.fsf@escher.home> References: <871v9gl16n.fsf@escher.home> <87sk1wjjo4.fsf@escher.home> From: Lennart Borgman Date: Mon, 30 Aug 2010 15:57:41 +0200 Message-ID: Subject: Re: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message To: Stephen Berman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6945 Cc: 6945@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) 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.) From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 04 15:09:26 2010 Received: (at control) by debbugs.gnu.org; 4 Sep 2010 19:09:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ory7C-0003Nt-I2 for submit@debbugs.gnu.org; Sat, 04 Sep 2010 15:09:26 -0400 Received: from pantheon-po41.its.yale.edu ([130.132.50.98]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ory7B-0003Nl-Ab for control@debbugs.gnu.org; Sat, 04 Sep 2010 15:09:25 -0400 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o84JBEaU002328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 4 Sep 2010 15:11:14 -0400 Received: by furry (Postfix, from userid 1000) id 25AC8C018; Sat, 4 Sep 2010 15:11:14 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 6945 wishlist Date: Sat, 04 Sep 2010 15:11:14 -0400 Message-ID: <87lj7h2ujx.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) severity 6945 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 20 14:26:13 2020 Received: (at 6945) by debbugs.gnu.org; 20 Aug 2020 18:26:13 +0000 Received: from localhost ([127.0.0.1]:44005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8pGP-0007k6-G6 for submit@debbugs.gnu.org; Thu, 20 Aug 2020 14:26:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8pGN-0007jq-O3 for 6945@debbugs.gnu.org; Thu, 20 Aug 2020 14:26:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EdhjFjXFesnAuGqGRcTKLqYZ6ShCrHPIoH6hpRcYFAs=; b=HGlFakHx3zBACRN5BhTeeqtETc g9SBxdodiUFnqA9WKjhmEb6euXPVvq6voi+DZfOOJXUPtVtYAjDQyDdGnbW972FYaF1pauts6/sgz LDpgAhyug3yZzM9Q8wUI7TdI50gb0dy3VF9D9RAGnfRZ7HoOJNMdmGbmOCgpPC6GMrOE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8pGA-0000AB-5B; Thu, 20 Aug 2020 20:26:05 +0200 From: Lars Ingebrigtsen To: Lennart Borgman Subject: Re: bug#6945: active-minibuffer-window returns nil when prompt overwritten by message References: X-Now-Playing: A Tribe Called Quest's _People's Instinctive Travels And The Paths Of Rhythm_: "I Left My Wallet In El Segundo" Date: Thu, 20 Aug 2020 20:25:56 +0200 In-Reply-To: (Lennart Borgman's message of "Mon, 30 Aug 2010 12:30:37 +0200") Message-ID: <874koxnphn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lennart Borgman writes: > Eval the following > > (defun temp-active-mb () > (message "active-minibuffer-window = %s" (active-minibuffer-window))) > > (progn > (run-with-idle-timer 1 nil 'message "idle message") > (run-with-i [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 6945 Cc: 6945@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lennart Borgman writes: > Eval the following > > (defun temp-active-mb () > (message "active-minibuffer-window = %s" (active-minibuffer-window))) > > (progn > (run-with-idle-timer 1 nil 'message "idle message") > (run-with-idle-timer 2 nil 'temp-active-mb) > (y-or-n-p "Prompt: ") > ) > > This gives me the message "active-minibuffer-window = nil". > > Is there any way then to discover whether Emacs is displaying a prompt > and waiting for input? I'm unable to reproduce this bug in Emacs 28. The way prompts work with asynchronous messages has changed substantially over the last year, which probably explains it. So I'm closing this bug report -- if there's still an issue here, please respond to the debbugs address and we'll reopen the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 20 14:26:22 2020 Received: (at control) by debbugs.gnu.org; 20 Aug 2020 18:26:22 +0000 Received: from localhost ([127.0.0.1]:44008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8pGU-0007kO-Op for submit@debbugs.gnu.org; Thu, 20 Aug 2020 14:26:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8pGT-0007jz-90 for control@debbugs.gnu.org; Thu, 20 Aug 2020 14:26:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3CfnHoiILJZ3gNbBu+OSO5Q8iBn0mln2CMffa6uxgd4=; b=K+tvDvlooLHpvhwGNo1ok5aV5C pCqutBmvYsINXJXBe6UaVy+wNhzPUnsrmgYPKl4YGUYCiftniPqwiAqMaVoEJkMbupid7BicYb48Q ILnA1fbEIRD+/wSCd4tBz98d9onM/Al7FAXf+8Jy98dwjwl8hOqyWpg93qMPA6EzhL78=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8pGL-0000Aa-Hc for control@debbugs.gnu.org; Thu, 20 Aug 2020 20:26:11 +0200 Date: Thu, 20 Aug 2020 20:26:08 +0200 Message-Id: <87364hnphb.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #6945 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 6945 fixed close 6945 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 6945 fixed close 6945 28.1 quit From unknown Sat Sep 06 08:34:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Sep 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator