Richard Stallman <[EMAIL PROTECTED]> writes:

>     But I don't see it would help in the case of
>
>       (defalias 'y-or-n-p 'yes-or-no-p)
>
>     That's the case where "nothing" works, because y-or-n-p doesn't obey
>     any key-bindings...
>
> I don't think we need to regard misbehavior in the case of such
> drastic user reprogramming as a bug in Emacs itself.


Actually, the thing that doesn't work is:

(defalias 'yes-or-no-p 'y-or-n-p)


Really, what I think is a problem with y-or-n-p is that suppose you
have some command which you want the user to confirm (with a simple
Y or N), then there's no way for the user to do anything sensible
(such as inspect what he's about to confirm) until he has answered
the question.

This kind of "eagerness" is a bug IMO.  My example was just an
example of why, eg. C-x v u MUST use yes-or-no-p rather than
y-or-n-p.

This difference in functionality isn't clear from the documentation.
It only something about using echo-area vs. minibuffer.

The doc for y-or-n-p says it uses query-replace-map, so maybe one way
to handle at least the case above is to add scroll-up/scroll-down
bindings in that map, and let y-or-n-p DTRT for those ...?

-- 
Kim F. Storm <[EMAIL PROTECTED]> http://www.cua.dk



_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to