From unknown Sat Sep 13 13:16:15 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#9818 <9818@debbugs.gnu.org> To: bug#9818 <9818@debbugs.gnu.org> Subject: Status: y-or-n-p prints nothing in batch mode Reply-To: bug#9818 <9818@debbugs.gnu.org> Date: Sat, 13 Sep 2025 20:16:15 +0000 retitle 9818 y-or-n-p prints nothing in batch mode reassign 9818 emacs submitter 9818 Glenn Morris severity 9818 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 18:40:54 2011 Received: (at submit) by debbugs.gnu.org; 20 Oct 2011 22:40:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH1IE-0000Zz-8k for submit@debbugs.gnu.org; Thu, 20 Oct 2011 18:40:54 -0400 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH1IB-0000Zr-Pl for submit@debbugs.gnu.org; Thu, 20 Oct 2011 18:40:52 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RH1H2-0007Of-Gs; Thu, 20 Oct 2011 18:39:40 -0400 From: Glenn Morris To: submit@debbugs.gnu.org Subject: y-or-n-p prints nothing in batch mode X-Spook: Albanian genetic cypherpunk Reno infowar kibo strategic X-Ran: 7+GM3_Ryyv'Kq]$)e-[KWS@IrVX9=,*[G|CrR%r-l`epoC1ig\/&tTVPEi*/WsQBEEM6S- X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 20 Oct 2011 18:39:40 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) 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: -6.4 (------) Package: emacs Version: 24.0.90 Severity: minor emacs -Q -batch --eval '(yes-or-no-p "foo? ")' prints "foo? (yes or no)" and waits for input. If you type something other than yes or no it prints "Please answer yes or no." and repeats the prompt. emacs -Q -batch --eval '(y-or-n-p "foo? ")'")' does not print anything, it just sits there waiting for "y RET" or "n RET". Entering something other than y or n prints nothing. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 29 04:46:04 2011 Received: (at 9818) by debbugs.gnu.org; 29 Oct 2011 08:46:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK4YF-0005Yh-Qy for submit@debbugs.gnu.org; Sat, 29 Oct 2011 04:46:04 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK4YC-0005YH-7N for 9818@debbugs.gnu.org; Sat, 29 Oct 2011 04:46:01 -0400 Received: from [155.69.18.173] (port=57235 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RK4WG-0004qc-3b; Sat, 29 Oct 2011 04:44:00 -0400 From: Chong Yidong To: Glenn Morris Subject: Re: bug#9818: y-or-n-p prints nothing in batch mode References: Date: Sat, 29 Oct 2011 16:43:52 +0800 In-Reply-To: (Glenn Morris's message of "Thu, 20 Oct 2011 18:39:40 -0400") Message-ID: <871utwnq5z.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9818 Cc: 9818@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: -6.6 (------) Glenn Morris writes: > emacs -Q -batch --eval '(yes-or-no-p "foo? ")' > > prints "foo? (yes or no)" and waits for input. If you type something > other than yes or no it prints "Please answer yes or no." and repeats > the prompt. > > emacs -Q -batch --eval '(y-or-n-p "foo? ")'")' > > does not print anything, it just sits there waiting for "y RET" or "n RET". > Entering something other than y or n prints nothing. Yes, this is a regression caused by moving y-or-n-p to Lisp. I've checked in a fix for this. (See also Bug#9903 for a related issue). From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 29 04:46:22 2011 Received: (at control) by debbugs.gnu.org; 29 Oct 2011 08:46:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK4YY-0005ZE-EQ for submit@debbugs.gnu.org; Sat, 29 Oct 2011 04:46:22 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK4YW-0005Z7-6P for control@debbugs.gnu.org; Sat, 29 Oct 2011 04:46:20 -0400 Received: from [155.69.18.173] (port=57237 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RK4Wa-0004r6-DA for control@debbugs.gnu.org; Sat, 29 Oct 2011 04:44:20 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 9818 Date: Sat, 29 Oct 2011 16:44:15 +0800 Message-ID: <87hb2si3vk.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) 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: -6.6 (------) close 9818 thanks From unknown Sat Sep 13 13:16:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 26 Nov 2011 12:24:03 +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