|
From: | Jan Djärv |
Subject: | Re: Idea for C-x v u |
Date: | Mon, 27 Jun 2011 22:34:12 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 |
Richard Stallman skrev 2011-06-27 15.06:
Another idea is: if you have not made a diff since the last change in the buffer, give an error, "Please look at a diff using C-x v = before doing C-x v u". It is more convenient for the user to make the diff with a separate command than to examine it inside of yes-or-no-p. Even if C-x v u does not make a diff, it should always call yes-or-no-p.
Why not a customize variable vc-show-diff-before-revert that takes values yes, no or ask? Personally I'd set it to no. When I revert, it is usually to get back to a sane state after inserting debugging code. No need to see a diff of that.
Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |