unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9818: y-or-n-p prints nothing in batch mode
@ 2011-10-20 22:39 Glenn Morris
  2011-10-29  8:43 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2011-10-20 22:39 UTC (permalink / raw)
  To: 9818

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#9818: y-or-n-p prints nothing in batch mode
  2011-10-20 22:39 bug#9818: y-or-n-p prints nothing in batch mode Glenn Morris
@ 2011-10-29  8:43 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2011-10-29  8:43 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 9818

Glenn Morris <rgm@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).





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-29  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-20 22:39 bug#9818: y-or-n-p prints nothing in batch mode Glenn Morris
2011-10-29  8:43 ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).