]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 570fba192c7bfca51ffa8cdfc35766ee93dc073d..37d105995bb68961f38f1a25ded80e4a8030481f 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 9ab754afe629cb38a48feb43c42e6a7afc7d821c..4e09f857af0bc333852a604ce7e508ea8c59445d 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 0ef9d06c3b26da3b24bbc39134ba78f432a32102..cec4fb24616c59d062e83ee0ccd154f44cc744d6 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.")