From: Sam Steingold <sds@gnu.org>
To: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: vc commit clears undo history
Date: Mon, 03 Dec 2007 15:48:59 -0500 [thread overview]
Message-ID: <47546BBB.1060605@gnu.org> (raw)
In-Reply-To: <858x4bfrt3.fsf@lola.goethe.zz>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Kastrup wrote:
> "Sam Steingold" <ssteingold@janestcapital.com> writes:
>
>> GNU Emacs 23.0.50.29 (x86_64-unknown-linux-gnu, GTK+ Version 2.8.20)
>> of 2007-12-03 on nyc-qws-005
>> '-with-gtk' '-with-gif=no'
>>
>> a long-standing bug (bad feature?) is that when a file is committed
>> using vc (C-x v v) or pcvs (c in *cvs* buffer), it buffer's undo history
>> is discarder.
>
> I think the rationale for that might be that in order to have the files
> identifiable as unmodified, some version control systems might do a
> recheckout on them, and replace strings like $Id: whatever$ with
> different information. In any case, a revert-buffer is done on the file
> after checking it in, I believe.
>
> It might not be easy to get consistent undo information in this case.
fwiw, "other vc interfaces", such as dvc (which interfaces to
distributed VCs (haz/hg/git &c), do not discard the undo information
after a commit.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHVGu7Pp1Qsf2qnMcRAvg3AJ9NhgEuV/Hd57OoiuBV6Wd1J4Ch9QCeMiBS
pWPh5yPidKRjkWQUoOUr1YM=
=Zsp3
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2007-12-03 20:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 20:07 vc commit clears undo history Sam Steingold
2007-12-03 20:26 ` David Kastrup
2007-12-03 20:48 ` Sam Steingold [this message]
2007-12-03 21:26 ` Dan Nicolaescu
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=47546BBB.1060605@gnu.org \
--to=sds@gnu.org \
--cc=dak@gnu.org \
--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).