# HG changeset patch # User Dan Nicolaescu # Date 1281067260 25200 # Node ID b7f3d45194f6c105f783bd1635353de238d4bd8b # Parent 98a5d29bd346cf126e778ae1bfaf97bd3c314f10 * lisp/vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer. diff -r 98a5d29bd346 -r b7f3d45194f6 etc/NEWS --- 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. diff -r 98a5d29bd346 -r b7f3d45194f6 lisp/ChangeLog --- 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 + + * 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 -r 98a5d29bd346 -r b7f3d45194f6 lisp/vc/diff-mode.el --- 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.")