Article View: gnu.epoch.misc
Article #35C-x u and M-x undo
From: Nhi Casey
Date: Tue, 07 Apr 1992 15:12
Date: Tue, 07 Apr 1992 15:12
39 lines
1457 bytes
1457 bytes
When I type: ab [RET] cd C-x u (this deletes 'cd') C-x u (this deletes the new line) C-x u (this deletes 'ab') This is the result of the view-lossage command: a b RET c d C-x u C-x u C-x u M-x v i e w - l o s s a g e RET but when I type: ab [RET] cd M-x u (this deletes 'cd') M-x u (this puts back the deleted 'cd') This is the result of the view-lossage command: a b RET c d M-x u n d o RET M-x u n d o RET M-x v i e w - l o s s TAB RET So even though C-x u is bound to the undo function, I get different behaviors for C-x u and M-x undo. I tried the advertised-undo command (M-x advertised-undo) also, and it behaves just like the undo command (M-x undo). I want to get the behavior of C-x u through calling some function because I'm working on creating popup menus in epoch; so when a user select the 'undo' menu item, I like to execute an emacs lisp function such as 'undo' but that doesn't let me undo previous changes like C-x u does. Thanks for your help. Nhi Casey nhi@ariel.aero.org
Technical Details
Message-ID:
<1992Apr7.151237.17023@speedy.aero.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!aero.org!speedy.aero.org!deveel.aero.org!nhiShow Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!aero.org!speedy.aero.org!deveel.aero.org!nhi From: nhi@deveel.aero.org (Nhi Casey) Subject: C-x u and M-x undo Message-ID: <1992Apr7.151237.17023@speedy.aero.org> Sender: news@speedy.aero.org Nntp-Posting-Host: deveel.aero.org Organization: The Aerospace Corporation; El Segundo, CA Date: Tue, 7 Apr 1992 15:12:37 GMT