From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: spamfilteraccount@gmail.com Newsgroups: gmane.emacs.help Subject: Undo Branches as in Vim Date: 19 Sep 2006 12:20:12 -0700 Organization: http://groups.google.com Message-ID: <1158693612.338681.72120@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1158694886 1130 80.91.229.2 (19 Sep 2006 19:41:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2006 19:41:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 19 21:41:22 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GPlSg-0002zh-5m for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Sep 2006 21:40:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPlSf-0001rf-NR for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Sep 2006 15:40:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 81.183.172.30 Original-X-Trace: posting.google.com 1158693617 25711 127.0.0.1 (19 Sep 2006 19:20:17 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 19 Sep 2006 19:20:17 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.01 (Windows NT 5.0; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e3g2000cwe.googlegroups.com; posting-host=81.183.172.30; posting-account=b98TkQ0AAAD7PsllN8gfWGRoPOPWdnv4 Original-Xref: shelby.stanford.edu gnu.emacs.help:141876 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37498 Archived-At: In this article http://linuxhelp.blogspot.com/2006/09/visual-walk-through-of-couple-of-new.html the author walks through the new features of Vim 7.0. Most of them are old news for us emacs users however the undo branches feature seems useful and I don't remember an emacs package which can do this. Quoting the article: In Vim 7.0, a new feature has been included which allows a user to jump back or forward to any point of editing. For example, I am editing a document and after a couple of minutes (say 10 min), I realise that I have made a mistake. I can easily take the document to a point 10 minutes back by using the command : :earlier 10m Or for that matter, move to a point 5 seconds ahead by using the command: :later 5s You can use the command :undolist to see a list of undo branches existing in the buffer. And each branch will have a number associated with it and it is possible to move to the undo level by using the command: :undo Anybody who has used Photoshop will find that this feature is similar to the history levels you have in Photoshop, the only difference being that in Photoshop it is for images where as in Vim it is for text. Is there an existing package which does that? Seems fairly trivial, so I'm sure someone did something like this already.