🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Nhi Casey Tue, 07 Apr 1992 15:12
C-x u and M-x undo
#35
Author: Nhi Casey
Date: Tue, 07 Apr 1992 15:12
39 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads