Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!cloos From: cloos@batcomputer.tn.cornell.edu (James H. Cloos Jr.) Newsgroups: comp.emacs Subject: Re: ARGH! Ahem. Umm, answering prompts & abbreviating Keywords: yes, no, y, n, !@^!@%! Message-ID: <7353@batcomputer.tn.cornell.edu> Date: 7 Feb 89 22:08:15 GMT References: <17901@vax5.CIT.CORNELL.EDU> <49807@yale-celray.yale.UUCP> Reply-To: cloos@tcgould.tn.cornell.edu (James H. Cloos Jr.) Distribution: comp Organization: Cornell Information Technologies, Ithaca, NY 14853 Lines: 29 Now that I have cooled down some, I'd like to discuss my thoughts on y-or-n-p vs. yes-or-no-p. One thing that I failed to mention is that I would not mind having to hit return after typing 'y' or 'n' (which would aloow one to C-xo to another window, and do stuff like that). The only thing I don't like is that 'y' should be equivilent to 'yes' (& likewise 'n' == 'no'). So, I guess the only answer is that I would have to find the c code for yes-or-no-p, and hack it to allow 'y' to be the same responce as 'yes' is, etc. I just wanted to make the point that I wasn't expecting the debate that ensued over how yes-or-no-p worked vs. how y-or-n-p did; I just want yes-or-no-p to accept abbreviations. (IMHO, all commands that prompt for a responce, and that do not operate in a mode analogous to UNIX's cbreak mode, should accept abbreviations for their expected input. ALL code that I write keeps this maxim in mind.) P.S. Anyone know if the source for emacs is shipped w/ the NeXTs? -JimC batcomputer!cloos@cornell.UUCP |James H. Cloos, Jr.|#include cloos@batcomputer.tn.cornell.EDU|B7 Upson, Cornell U|#include cloos@tcgould.tn.cornell.EDU |Ithaca, NY 14853 |"Entropy isn't what cloos@crnlthry.BITNET | +1 607 272 4519 | it used to be." a.k.a. jhc@vax5.ccs.cornell.EDU or jhc@crnlvax5.BITNET (Or, if you'd like to mail me at my NeXT account: jcloos@upson.cit.cornell.edu) (Just don't expect replies as mail comes in but it don't got out. (yet))