* lisp/vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer.
authorDan Nicolaescu <dann@ics.uci.edu>
Fri, 6 Aug 2010 04:01:00 +0000 (21:01 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Fri, 6 Aug 2010 04:01:00 +0000 (21:01 -0700)
etc/NEWS
lisp/ChangeLog
lisp/vc/diff-mode.el

index 570fba1..37d1059 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -258,6 +258,9 @@ is just left as is in the message, so it is not lost.
 **** 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.
index 9ab754a..4e09f85 100644 (file)
@@ -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
index 0ef9d06..cec4fb2 100644 (file)
@@ -141,6 +141,7 @@ when editing big diffs)."
     ;; 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.")