dtau@mullian.ee.mu.oz.au (David Au) (10/16/90)
Hello, as the subject says, is there a way to undo the previous command or typing in EMACS? Can it be done by using macros? Thanks in advance, |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | David Au | ACSnet : dtau@mullian.ee.mu.oz | | Department of Elec Engineering | internet : dtau@mullian.ee.mu.oz.au | | University of Melbourne | uunet : uunet!munnari!mullian!dtau | |___________________________________|_________________________________________| |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | David Au | ACSnet : dtau@mullian.ee.mu.oz | | Department of Elec Engineering | internet : dtau@mullian.ee.mu.oz.au | | University of Melbourne | uunet : uunet!munnari!mullian!dtau |
cedman@lynx.ps.uci.edu (Carl Edman) (10/16/90)
In article <5767@munnari.oz.au> dtau@mullian.ee.mu.oz.au (David Au) writes:
Path: orion.oac.uci.edu!usc!cs.utexas.edu!uunet!munnari.oz.au!mullian!dtau
From: dtau@mullian.ee.mu.oz.au (David Au)
Newsgroups: comp.emacs
Subject: How to UNDO in emacs?
Message-ID: <5767@munnari.oz.au>
Date: 16 Oct 90 01:39:17 GMT
Sender: news@cs.mu.oz.au
Reply-To: dtau@mullian.ee.mu.OZ.AU (David Au)
Organization: Dept. of Electrical Engineering, University of Melbourne
Lines: 14
Hello, as the subject says, is there a way to undo the previous command or
typing in EMACS? Can it be done by using macros?
Thanks in advance,
Ever tried "ESC-x undo" ? :-)
Carl Edman
Theorectial Physicist,N.:A physicist whose | Send mail
existence is postulated, to make the numbers | to
balance but who is never actually observed | cedman@golem.ps.uci.edu
in the laboratory. | edmanc@uciph0.ps.uci.edu
slehar@park.bu.edu (Steve Lehar) (10/16/90)
Carl Edman> Ever tried "ESC-x undo" ? :-) This works just fine, but a more convenient undo is C-_ (that is, control-shift-underbar) because you can do multiple undo's in rapid succession, like this C-_ C-_ C-_ to undo the last three commands. -- (O)((O))(((O)))((((O))))(((((O)))))(((((O)))))((((O))))(((O)))((O))(O) (O)((O))((( slehar@park.bu.edu )))((O))(O) (O)((O))((( Steve Lehar Boston University Boston MA )))((O))(O) (O)((O))((( (617) 424-7035 (H) (617) 353-6741 (W) )))((O))(O) (O)((O))(((O)))((((O))))(((((O)))))(((((O)))))((((O))))(((O)))((O))(O)
shore@mtxinu.COM (Melinda Shore) (10/17/90)
In article <CEDMAN.90Oct15190925@lynx.ps.uci.edu> cedman@lynx.ps.uci.edu (Carl Edman) writes: |In article <5767@munnari.oz.au> dtau@mullian.ee.mu.oz.au (David Au) writes: |> Hello, as the subject says, is there a way to undo the previous command or |> typing in EMACS? |Ever tried "ESC-x undo" ? :-) Or better still, ^h-a undo ^m . -- Melinda Shore shore@mtxinu.com mt Xinu ..!uunet!mtxinu.com!shore
mferrare@sirius.ucs.adelaide.edu.au.ua.oz (Mark Ferraretto) (10/17/90)
From article <5767@munnari.oz.au>, by dtau@mullian.ee.mu.oz.au (David Au): > Hello, as the subject says, is there a way to undo the previous command or > typing in EMACS? Can it be done by using macros? > > Thanks in advance, > try C-_ (ctrl-underscore) -- _ Name : Mark Ferraretto \ \ Place : Department of Physics and Mathematical Physics || \ \ University of Adelaide ==========>==>==-- Aarnet: mferrare@physics.adelaide.edu.au || / / Phone : +61 8 228 5428 /_ / Phax : +61 8 224 0464 _ Name : Mark Ferraretto \ \ Place : Department of Physics and Mathematical Physics || \ \ University of Adelaide ==========>==>==-- Aarnet: mferrare@physics.adelaide.edu.au
liberte@cs.uiuc.edu (Daniel LaLiberte) (10/18/90)
In article <SLEHAR.90Oct16102736@park.bu.edu> slehar@park.bu.edu (Steve Lehar) writes:
C-_ C-_ C-_
to undo the last three commands.
------
To be precise, C-_ undoes *changes* not commands. A change
is an insertion, deletion, or replacement. Undoing continues up to
the next undo-boundary, which usually, but not always, coincides
with the effect of a single command.
For more info, see the Undo section of the GNU Emacs Lisp Reference Manual.
dan
nhess@gumby.us.oracle.com (Nate Hess) (10/19/90)
In article <SLEHAR.90Oct16102736@park.bu.edu>, slehar@park (Steve Lehar) writes: >This works just fine, but a more convenient undo is > C-_ (that is, control-shift-underbar) On many keyboards, you can also generate this character by typing C-/ --woodstock -- "What I like is when you're looking and thinking and looking and thinking...and suddenly you wake up." - Hobbes nhess@us.oracle.com or ...!uunet!oracle!nhess or (415) 506-2650