From: Dan Nicolaescu Date: Fri, 6 Aug 2010 04:01:00 +0000 (-0700) Subject: * lisp/vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer. X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/b3d42406f854852f3ca4a45112c8cd182279a23b * lisp/vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer. --- diff --git a/etc/NEWS b/etc/NEWS index 570fba192c..37d105995b 100644 --- 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. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9ab754afe6..4e09f857af 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-08-06 Dan Nicolaescu + + * vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer. + 2010-08-05 Eli Zaretskii * emacs-lisp/find-gc.el (find-gc-source-files): Rename diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 0ef9d06c3b..cec4fb2461 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -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.")