[Top][All Lists]
[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: |
Sat, 16 Dec 2006 01:19:35 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) |
"Kim F. Storm" <address@hidden> writes:
>> emacs -Q
> C-x C-f <some vc-controlled file with many uncommitted change> RET
> C-x v u
>
> <emacs frame spits into two with the diffs in the lower window>
>
> Prompt is "Discard changes? (yes or no)"
>
> <I would like to review the changes, so I try to scroll the diffs>
>
> C-M-v
>
> But this scrolls the source window rather than the diffs window.
> Not very useful...
>
Did anybody look at this?
>
> But it gets worse:
>
> I don't like the yes or no prompts, so I have this in my .emacs:
>
> (defalias 'yes-or-no-p 'y-or-n-p)
>
> Now, C-M-v doesn't work at all --- it just beeps.
I looked into this ... and it is because yes-or-no-p uses
read-from-minibuffer, and thus obeys all key bindings.
In contrast, y-or-n-p does the reading itself, and looks up the
bindings ONLY in query-replace-map (which obviously don't tell how to
"scroll-other-window".
I don't see an easy fix for this...
--
Kim F. Storm <address@hidden> http://www.cua.dk