unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Paul D. Smith" <psmith@gnu.org>
Subject: Re: undo an undo
Date: 24 May 2004 13:03:52 -0400	[thread overview]
Message-ID: <vpdrlljh3gg7.fsf@lemming.engeast.baynetworks.com> (raw)
In-Reply-To: x5lljheppq.fsf@lola.goethe.zz

%% David Kastrup <dak@gnu.org> writes:

  dk> Joel Smith <Joelvsmith@earthlink.net> writes:
  >> how do i restore what i've accidently undone?  i.e.  i hit C-x u and then 
  >> realize that i really wanted it?  what do i do to restore it?

  dk> Move the cursor and press C-x u again.

You can use any command that "breaks" the undo sequence; then it will go
back to the beginning again (and the first thing on the undo list now
will be the change the last undo made).  I personally prefer to use C-g;
it seems to fit in this context and it's something my "muscle memory"
knows how to type very quickly.  I do the same with yank.

Of course whatever works for you is best.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

  reply	other threads:[~2004-05-24 17:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-24 16:23 undo an undo Joel Smith
2004-05-24 16:48 ` David Kastrup
2004-05-24 17:03   ` Paul D. Smith [this message]
2004-05-24 18:04     ` Peter Gjefle
2004-05-24 18:24     ` Drew Adams
2004-05-24 20:21 ` Micha Feigin
     [not found] ` <mailman.7135.1085440202.1061.help-gnu-emacs@gnu.org>
2004-05-26 18:21   ` Stefan Monnier
     [not found] <mailman.7092.1085432180.1061.help-gnu-emacs@gnu.org>
2004-05-25  9:58 ` Mathias Dahl
2004-05-26 18:26 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vpdrlljh3gg7.fsf@lemming.engeast.baynetworks.com \
    --to=psmith@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).