changeset 109651:b7f3d45194f6

* lisp/vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 05 Aug 2010 21:01:00 -0700
parents 98a5d29bd346
children eb720d8ea1c6
files etc/NEWS lisp/ChangeLog lisp/vc/diff-mode.el
diffstat 3 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Fri Aug 06 03:44:13 2010 +0000
+++ b/etc/NEWS	Thu Aug 05 21:01:00 2010 -0700
@@ -258,6 +258,9 @@
 **** vc-bzr handles Author:, Date: and Fixes:
 **** vc-mtn handles Author: and Date:
 
+*** Pressing g in a *vc-diff* buffer reruns vc-diff, so it will
+produce an up to date diff.
+
 ** Directory local variables can apply to file-less buffers.
 For example, adding "(diff-mode . ((mode . whitespace)))" to your
 .dir-locals.el file, will turn on `whitespace-mode' for *vc-diff* buffers.
--- a/lisp/ChangeLog	Fri Aug 06 03:44:13 2010 +0000
+++ b/lisp/ChangeLog	Thu Aug 05 21:01:00 2010 -0700
@@ -1,3 +1,7 @@
+2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer.
+
 2010-08-05  Eli Zaretskii  <eliz@gnu.org>
 
 	* emacs-lisp/find-gc.el (find-gc-source-files): Rename
--- a/lisp/vc/diff-mode.el	Fri Aug 06 03:44:13 2010 +0000
+++ b/lisp/vc/diff-mode.el	Thu Aug 05 21:01:00 2010 -0700
@@ -141,6 +141,7 @@
     ;; Standard M-r is useful, so don't change M-r or M-R.
     ;;("r" . diff-restrict-view)
     ;;("R" . diff-reverse-direction)
+    ("g" . revert-buffer)
     ("q" . quit-window))
   "Basic keymap for `diff-mode', bound to various prefix keys.")