unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Idea for C-x v u
@ 2011-06-27 13:06 Richard Stallman
  2011-06-27 20:34 ` Jan Djärv
  2011-06-28 14:51 ` Andreas Röhler
  0 siblings, 2 replies; 18+ messages in thread
From: Richard Stallman @ 2011-06-27 13:06 UTC (permalink / raw)
  To: emacs-devel

It is definitely a good idea to check the diffs of a file before
reverting a change, but normally it's a waste of time for C-x v u to
do that because I will have done it manually.

However, if I ever forget to do that, it wouldn't hurt for C-x v u to
remind me.

So here's an idea.  Make C-x v d record the tick count of the buffer
when it was done.  Then C-x v u can show a diff, if you have not made
one of that buffer since the last edit in it.

This might be universally better than the two optional choices that
were previously proposed (either unconditionally show a diff, or never
show a diff).

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.

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use free telephony http://directory.fsf.org/category/tel/



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-06-30 20:34 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-27 13:06 Idea for C-x v u Richard Stallman
2011-06-27 20:34 ` Jan Djärv
2011-06-27 23:03   ` Richard Stallman
2011-06-28  6:00     ` Jan Djärv
2011-06-28  6:18       ` David Kastrup
2011-06-28  8:27         ` Jan Djärv
2011-06-28 14:58   ` Chong Yidong
2011-06-28 15:47     ` David Kastrup
2011-06-29 10:58       ` Richard Stallman
2011-06-28 15:54     ` Jan D.
2011-06-28 23:55       ` Óscar Fuentes
2011-06-29  5:56         ` Jan D.
2011-06-29  8:52           ` David Kastrup
2011-06-29  6:51         ` Andreas Röhler
2011-06-29  8:06           ` Jan D.
2011-06-30 17:26             ` Stefan Monnier
2011-06-30 20:34               ` Drew Adams
2011-06-28 14:51 ` Andreas Röhler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).