unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: [rant] Should reverting a buffer really discard undo history?
Date: Thu, 02 Jun 2005 11:10:47 -0700	[thread overview]
Message-ID: <200506021810.j52IApKE007655@scanner2.ics.uci.edu> (raw)
In-Reply-To: <87ll5tpsh9.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 01 Jun 2005 19:31:56 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

  > > Maybe other users have a different experience, but for me 99% of the
  > > time I would like undo info after a revert is when revert was invoked
  > > by VC/pcl-cvs after a commit.
  > > So from this users point of view if VC/pcl-cvs were not to revert the
  > > buffer, saving undo after revert would not be missed much. 
  > 
  > Indeed, it may also be useful to allow the revert-undoability to be
  > specified on a revert-by-revert basis.  And VC/PCL-CVS would be well served
  > by a "revert carefully" which would do something like "diff+patch" rather
  > than an actual revert.  Note that revert already does a limited form of
  > diff+patch since it checks the prefix&suffix of the file/buffer which hasn't
  > changed, so if only one line was changed the undo would record only
  > a one-line change rather than a complete delete+insert of the whole buffer.

If saving undo after revert is not implemented/accepted would it be
possible to avoid the revert if it is not needed after a commit? 
Wouldn't a (string= (md5 FILE) (md5 BUFFER)) be enough to avoid
reverting?

  reply	other threads:[~2005-06-02 18:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-30 19:57 [rant] Should reverting a buffer really discard undo history? Daniel Brockman
2005-05-30 21:28 ` Stefan Monnier
2005-05-30 21:56   ` Juanma Barranquero
2005-05-30 21:58   ` Lennart Borgman
2005-06-01 23:19   ` Dan Nicolaescu
2005-06-01 23:31     ` Stefan Monnier
2005-06-02 18:10       ` Dan Nicolaescu [this message]
2005-06-03 22:30         ` Richard Stallman
2005-05-31 17:47 ` Richard Stallman
2005-05-31 18:23   ` Drew Adams
2005-06-01 17:25     ` Richard Stallman
     [not found] <E1DcrBs-0005I0-W6@monty-python.gnu.org>
2005-05-31  0:28 ` Jonathan Yavner
2005-05-31  2:30   ` Daniel Brockman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200506021810.j52IApKE007655@scanner2.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).