Tony Martinez <tonyms@...> writes:
> I've extensively modified query.lisp, attached.
Thank you, I've merged this, with some modifications, into
> The intent is to:
> - fix the (BEEP) sans arguments bug in yes-or-no-p. [Actually, I
> took BEEP out altogether--why should yes-or-no-p beep? Shouldn't
> it be used to ask the user things without implying some error
> occured? If people prefer BEEPs, then the (beep) form in
> yes-or-no-p should probably be (beep *query-io*).]
I've put (BEEP *QUERY-IO*) back in, because the CLHS page for
YES-OR-NO-P, believe it or not, actually says:
yes-or-no-p types out a message (if supplied), attracts the user's
attention (for example, by ringing the terminal's bell), [...]
So, um. :-)
> - make y-or-n-p be character oriented, as heavily suggested by ANSI
> (the current implementation is line oriented)
This is so, but it's worth noting perhaps that this doesn't mean what
I expected it to mean; that is, I as a user still have to press my
return key to get Y-OR-N-P to read the character that I typed.
Presumably this is due to stream buffering or some such things that I
don't know enough about.
These things notwithstanding, thank you again.
http://www-jcsu.jesus.cam.ac.uk/~csr21/ +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%") (pprint #36rJesusCollegeCambridge)