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.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: 9818 <at> debbugs.gnu.org
Subject: bug#9818: 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.




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.