From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Chris Newsgroups: gmane.emacs.help Subject: Re: RCS revert to previous version Date: Sat, 12 Oct 2002 01:44:09 -0000 Organization: The Lott Company Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1034387611 8128 127.0.0.1 (12 Oct 2002 01:53:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 12 Oct 2002 01:53:31 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 180BT8-00026y-00 for ; Sat, 12 Oct 2002 03:53:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 180BQu-0000gi-00; Fri, 11 Oct 2002 21:51:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xit-05!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help User-Agent: Xnews/5.04.25 X-motd: Can Spam! X-message-flag: Outlook Critical Error! Please Restart Your Computer. X-Face: 7?1,~hLJv9R%<#DNR6m@9W**a.!h-)!o5B1\Y*}7"#k%MzvMP?z#A"Y@ai5SY[@JE95J'AQKwlk'5CbWOp:v5^HL>*a-.cPv*sXU?_ Original-X-Complaints-To: abuse@supernews.com Original-Lines: 50 Original-Xref: shelby.stanford.edu comp.emacs:75238 gnu.emacs.help:105954 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2501 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2501 on 11 Oct 2002, Jhair Tocancipa Triana spake thusly: > Chris writes: > > > Right... but my question is how to make that the current > > version... do I have to delete the entirety of my current working > > file and copy and paste from the older version window? I can't > > just check the older version in and have it become the latest. I > > was hoping there was a more efficient way than copy and paste... > > Is this, what you need? > > ,----[ C-h k C-x v u ] >| C-x v u runs the command vc-revert-buffer >| which is an interactive autoloaded Lisp function in `vc'. >| [Arg list not available until function definition is loaded.] >| >| Revert the current buffer's file back to the version it was based on. >| This asks for confirmation if the buffer contents are not identical >| to that version. This function does not automatically pick up newer >| changes found in the master file; use C-u C-x v v to do so. Well, this command reverts the current buffer back to the state when it was last checked out. Which can be handy, but is not what I am looking for. Let me take another stab at explaining. I have a document that has gone through these changes (numbers are version numbers): 1.5 Bob went to school 1.6 Mary went home 1.7 John went to the market 1.8 Chris discovers emacs (and then fire) I open the document (1.8) and discover that I need to go back to version 1.6. How best to do this? I can open 1.6 up using the show-other-version command, but then I have to select everything in the old display document and paste it "over" the new document. It just seemed to me there must be a better way of going back more than one revision. Maybe I am just missing something really stupid... or maybe this is just not needed very often. But the ability to revert back more than one version seems very useful to me.