Article View: gnu.emacs.bug
Article #98651Re: Suggestion for extending undo
From: Jim Blandy
Date: Mon, 22 Apr 1991 23:53
Date: Mon, 22 Apr 1991 23:53
19 lines
1658 bytes
1658 bytes
>> It could be useful if it were possible to have several undo lists for >> a single buffer, kept independantly for some specified regions. > >In Zmacs, if the region is set, undo limits its actions to those fully >contained within the region. If an action spread across the boundary of the >region, it failed. This was a staggering win. This would be a really great feature. Unfortunately, in order to make this work, the positions in the undo list would have to become markers instead of plain integers, you'd end up with *lots* of markers in your buffer, and editing would slow down. Zmacs kept the buffer as a linked list of lines and markers stuck with their lines, so each marker moved around a lot less often, and neat tricks like the restricted undo and intervals were easier. It might be possible to build restricted undo on top of the interval code, if Emacs 19 acquires this feature. -JimB
Technical Details
Message-ID:
<9104222353.AA16947@geech.gnu.ai.mit.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!dali.cs.montana.edu!bridge2!mips!apple!agate!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!unreplyable!garbageReferences:
<JWZ.91Apr22151503@thalidomide.lucid.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,4208608bbda7070b X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-04-22 16:53:22 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!dali.cs.montana.edu!bridge2!mips!apple!agate!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: jimb@GNU.AI.MIT.EDU (Jim Blandy) Newsgroups: gnu.emacs.bug Subject: Re: Suggestion for extending undo Message-ID: <9104222353.AA16947@geech.gnu.ai.mit.edu> Date: 22 Apr 91 23:53:22 GMT References: <JWZ.91Apr22151503@thalidomide.lucid.com> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 Approved: bug-gnu-emacs@prep.ai.mit.edu