From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: vc commit clears undo history Date: Mon, 03 Dec 2007 21:26:32 +0100 Message-ID: <858x4bfrt3.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196713597 1927 80.91.229.12 (3 Dec 2007 20:26:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2007 20:26:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 03 21:26:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IzHsH-0007Vo-Px for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 21:26:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzHs1-0005Gk-CV for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 15:26:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzHrw-0005D9-JO for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:26:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzHrv-0005BP-Li for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:26:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzHrv-0005BC-Gu for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:26:19 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzHrv-00057t-6p for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:26:19 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzHru-00041w-Us for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:26:19 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 4D2111C4D3AA; Mon, 3 Dec 2007 21:26:32 +0100 (CET) In-Reply-To: (Sam Steingold's message of "Mon, 03 Dec 2007 15:07:51 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84595 Archived-At: "Sam Steingold" 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. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum