GNU bug report logs - #9818
y-or-n-p prints nothing in batch mode

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Thu, 20 Oct 2011 22:41:01 UTC

Severity: minor

Found in version 24.0.90

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9818 in the body.
You can then email your comments to 9818 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9818; Package emacs. (Thu, 20 Oct 2011 22:41:01 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: y-or-n-p prints nothing in batch mode
Date: Thu, 20 Oct 2011 18:39:40 -0400
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9818; Package emacs. (Sat, 29 Oct 2011 08:47:02 GMT) Full text and rfc822 format available.

Message #6 received at 9818 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9818 <at> debbugs.gnu.org
Subject: Re: bug#9818: y-or-n-p prints nothing in batch mode
Date: Sat, 29 Oct 2011 16:43:52 +0800
Glenn Morris <rgm <at> gnu.org> 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).




bug closed, send any further explanations to 9818 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 29 Oct 2011 08:47:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 26 Nov 2011 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.