From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Undo'ing cursor movement keys Date: Thu, 07 Sep 2006 22:07:43 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <45008a21$0$75038$14726298@news.sunsite.dk> References: <1157649435.177798.187670@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157665239 2650 80.91.229.2 (7 Sep 2006 21:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Sep 2006 21:40:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 07 23:40:37 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 1GLRbq-0003AH-O2 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Sep 2006 23:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLRbp-0007FO-Ad for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Sep 2006 17:40:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Thunderbird 1.5.0.4 (X11/20060713) Original-Newsgroups: comp.emacs.xemacs,gnu.emacs.help In-Reply-To: <1157649435.177798.187670@e3g2000cwe.googlegroups.com> Original-Lines: 32 Original-NNTP-Posting-Host: 62.56.73.25 Original-X-Trace: news.sunsite.dk DXC=2QLVokCl3dAlZiKmBn9NRLYSB=nbEKnkKgEC[aiI3^@HG1[Bg<0aH5@\VT\m5_SIbFU_42Df:PaKHTcL2h5ahoTOkF_>m>CYcVO05MLoLgSG3K2eCDPH Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu comp.emacs.xemacs:80577 gnu.emacs.help:141598 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:37220 Archived-At: Bob wrote: > Coming from the Windows world, one of the items that I became highly > accustomed to with my editor, Codewright, was that you could UNDO > printable characters as well as the cursor positioning/movement keys. > > Is there any equivalent for emacs? Can anyone point me to where/how to > accomplish this? > > For example, in codewright if I were at the top of the screen pressed > 'a', right arrow, 'b', right arrow, 'c', then page down, page down. I > would move down 2 pages worth of text. If I then did undo once, I > would undo the page down, undo'ing a second time would undo the page > down, a 3rd undo undoes the 'c', 4th undoes the right arrow key press, > Another undo undoes the 'b', the next undo undoes the right arrow, and > the last undoes the 'a'. The important thing is that the the cursor > movement keys were also pushed onto the undo stack. This is what I > want to do in emacs. > > Thanks > Bob > In the O'Reilly book, "Writing GNU EMACs Extensions", by Bob Glickstein, ISBN 1565922611, there is, IIRC, a minor mode to do this. HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.