Subject: Re: bug#9818: y-or-n-p prints nothing in batch mode

From: Chong Yidong <[email-masked]>
Date: Sat, 29 Oct 2011 16:43:52 +0800

Glenn Morris <[email-masked]> 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).