emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scroll-other-window scrolls wrong window for vc-revert-buffer


From: Kim F. Storm
Subject: Re: scroll-other-window scrolls wrong window for vc-revert-buffer
Date: Tue, 19 Dec 2006 10:38:16 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

Richard Stallman <address@hidden> 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 <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]