all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: vc, diff and scroll window
Date: Tue, 13 Jul 2004 17:35:48 -0600	[thread overview]
Message-ID: <40F471D4.7060809@yahoo.com> (raw)
In-Reply-To: mailman.806.1089714255.22971.bug-gnu-emacs@gnu.org

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
   	  (unwind-protect
+ 	      (setq minibuffer-scroll-window win)
   	      (unless (yes-or-no-p "Discard changes? ")
   		(error "Revert canceled"))
   	    (select-window win)

-- 
Kevin Rodgers

       reply	other threads:[~2004-07-13 23:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.806.1089714255.22971.bug-gnu-emacs@gnu.org>
2004-07-13 23:35 ` Kevin Rodgers [this message]
2004-07-14 18:27   ` vc, diff and scroll window Richard Stallman
2004-07-13 10:20 Matthias Meulien
  -- strict thread matches above, loose matches on Subject: below --
2004-07-11  9:40 Matthias
2004-07-12 17:59 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40F471D4.7060809@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.