[Top][All Lists]

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

Re: vc, diff and scroll window

From: Kevin Rodgers
Subject: Re: vc, diff and scroll window
Date: Tue, 13 Jul 2004 17:35:48 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Matthias Meulien wrote:
> Suppose I have a file under version control, and say that that file
> has been changed and saved without being commited. When I press C-xvu
> (calling vc-revert-buffer) from a buffer visiting that file, the
> corresponding window get split a diff buffer is shown and Emacs ask
> 'Discard changes' (the minibuffer get selected).
> Here are two bugs related to this situation:
> 1. The diff buffer is not fontified.

Is it in Diff mode (confirmed via `C-h v major-mode')?

> 2. While the minibuffer is selected, M-C-v (scroll-other-window)
>    doesn't work, so one cannot scroll the window containing the diff
>    buffer.

A simple addition to vc-version-diff should fix that:

*** /usr/local/emacs-21.3/lisp/vc.el.orig       Mon Jan 20 04:03:30 2003
--- /usr/local/emacs-21.3/lisp/vc.el    Tue Jul 13 09:38:15 2004
*** 2500,2505 ****
--- 2500,2506 ----
        (vc-exec-after `(message nil))
        (when status
+             (setq minibuffer-scroll-window win)
              (unless (yes-or-no-p "Discard changes? ")
                (error "Revert canceled"))
            (select-window win)

Kevin Rodgers

reply via email to

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