home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / emacs / help / 5343 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.5 KB  |  35 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!gnu.ai.mit.edu!rms
  3. From: rms@gnu.ai.mit.edu (Richard Stallman)
  4. Subject: suggestion for new emacs feature: spatial undo
  5. Message-ID: <9301122251.AA28106@mole.gnu.ai.mit.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
  8. References: <JXL.93Jan11164152@ontario.opl.com>
  9. Date: Tue, 12 Jan 1993 12:51:07 GMT
  10. Lines: 23
  11.  
  12. People are talking about having non-chronological undo in Emacs.
  13. I once implemented an undo facility that could undo out of order.  
  14. It requires two things:
  15.  
  16. * Implementing restoration of old values of buffer pointers.  When you
  17. delete, markers formerly unequal can become equal.  Undoing the delete
  18. has to make these markers unequal again.
  19.  
  20. * Using markers in the undo records.  
  21.  
  22. Then, if you undo out of order, it automatically updates the markers
  23. in the undo records for more recent operations, so they are undone
  24. correctly.
  25.  
  26. The hard part is making it efficient to have very large numbers of
  27. markers in one buffer.  With the current data structure, updating them
  28. for a deletion or gap motion might be painfully slow.  Or maybe it
  29. would be acceptable--I'm not sure.
  30.  
  31. I don't have time to work on this, but it would be a good thing for
  32. someone else to work on.  If you can understand the relevant parts of
  33. Emacs without a lot of questions, and you have a fair amount of time
  34. to spend on this, let me know if you're interested.
  35.