From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Eide Newsgroups: gmane.emacs.help Subject: Re: Undo'ing cursor movement keys Date: Fri, 08 Sep 2006 08:25:57 -0600 (MDT) Organization: University of Utah School of Computing Message-ID: References: <1157649435.177798.187670@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157726461 18332 80.91.229.2 (8 Sep 2006 14:41:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 14:41:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 08 16:40:59 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 1GLhWt-0003tj-K2 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Sep 2006 16:40:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLhWt-0004Hb-47 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Sep 2006 10:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsfeed.telusplanet.net!newsfeed.telus.net!xmission!news.utah.edu!not-for-mail Original-Newsgroups: comp.emacs.xemacs,comp.emacs,gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: peoa.flux.utah.edu Original-X-Trace: vegh.ks.cc.utah.edu 1157725559 6286 155.98.60.39 (8 Sep 2006 14:25:59 GMT) Original-X-Complaints-To: usenet@news.utah.edu Original-NNTP-Posting-Date: Fri, 8 Sep 2006 14:25:59 +0000 (UTC) User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Constant Variable, berkeley-unix) Cancel-Lock: sha1:Cf8KQgQQFMSgHATaDeXJLHbHax8= Original-Xref: shelby.stanford.edu comp.emacs.xemacs:80580 comp.emacs:92949 gnu.emacs.help:141610 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:37232 Archived-At: "Bob" == Bob writes: Bob> Coming from the Windows world, one of the items that I became Bob> highly accustomed to with my editor, Codewright, was that you Bob> could UNDO printable characters as well as the cursor Bob> positioning/movement keys. Bob> Bob> Is there any equivalent for emacs? Can anyone point me to Bob> where/how to accomplish this? I don't know to accomplish exactly what you want, but I will give you two pointers that you might find useful: + The `scroll-in-place' Emacs add-on package makes scrolling commends "effectively" undoable, in the sense that PageDown+PageUp will always bring the cursor back to its starting location. Get this package from: http://www.cs.utah.edu/~eeide/emacs/scroll-in-place.el.gz The variable `scroll-preserve-screen-position', which is built into GNU Emacs, has a similar effect. + Often, you can get back to where you want to be by "popping the mark ring." The key binding for this is C-u C-SPC. Read the online GNU Emacs manual for more information about "marks" and the mark ring. Good luck! --- Eric. -- ------------------------------------------------------------------------------- Eric Eide . University of Utah School of Computing http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX