From: Scott L. <sl...@cs...> - 2002-03-30 08:35:38
|
Finished testing undo.scm. Executive summary: Fixed undo/redo bug. Improved the docs a bunch. Deprecated 2 functions that shouldn't have been public. Deprecated 2 functions that were broken and had strange semantics. Added doc noting this fact and what the net result of running it now is (same as another function). Here's the change log: * undo.scm: Documented public variables. Updated and greatly improved documentation. Deprecated 'decrement-undo-index', 'increment-undo-index', 'insert-undo-global', and 'insert-undo-state'. The first 2 should be private and the last 2 were broken and had bizarre semantics to begin with so I decided to deprecate instead of fix. Fixed bug in undo/redo that would result in having to do 2 undos/redos in a row to reverse the effect of the last redo/undo. Implemented paying attention to undo-max-entries so that we don't just keep growing memory in the comon usage case. Added function 'truncate-undo-list' in the process to constrain the undo-list to be no larger than a given number. Exported as public since may be useful to users. Enjoy. - Scott |