home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
FREEMACS
/
CONTRIB.ZIP
/
UNDO.MIN
< prev
next >
Wrap
Text File
|
1990-03-09
|
1KB
|
67 lines
Impractical. Every modification to the buffer would have to be changed into
a call to Frecord-insert and Frecord-delete. It *is* tantalizing, though.
#(sp,$>)#(Frecord-insert,(#(is,hello there)))#(Frecord-delete,{)#(Frecord-insert,(#(is,goodbye)))
Name:Frecord-delete
Enter with arg1 = the mark to delete to.
Exit with the undo information updated.
[*]#(ds,undo-record,
D(,)
#(lv,cl)(,)#(lv,cs)
[ - ]##(rm,arg1)[ - ]
##(undo-record)
)
#(dm,arg1)[*]
Name:Frecord-insert
Enter with arg1 = a string to be executed that inserts text.
Exit with the undo information updated.
[*]#(ds,undo-record,
I(,)
#(lv,cl)(,)#(lv,cs)(,)
arg1
#(lv,cl)(,)#(lv,cs)
[ - ]
##(undo-record)
)[*]
Name:K.C-x u
[*]F:undo[*]
Name:F:undo
Undo the most recent item in the undo record.
[*]#(Fundo.#(fm,undo-record,[ - ]))[*]
Name:Fundo.
[*]#(an,No more undo information!)[*]
Name:Fundo.I
arg1 == starting line,
arg2 == starting column,
arg3 == ending line,
arg4 == ending column.
[*]#(pm,1)
#(sv,cl,arg1)
#(sv,cs,arg2)
#(sm,0)
#(sv,cl,arg3)
#(sv,cs,arg4)
#(dm,0)
#(pm)
[*]
Name:Fundo.D
arg1 == line,
arg2 == column.
[*]#(sv,cl,arg1)
#(sv,cs,arg2)
#(is,##(fm,undo-record,[ - ]))
[*]