[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undo problems?
From: |
Miles Bader |
Subject: |
undo problems? |
Date: |
Wed, 18 Oct 2000 13:51:18 +0900 (JST) |
I noticed that undo seems deficient in (at least:) two ways:
1) Evaporated overlays are not recorded (so cannot be undone)
2) No care is taken to account for markers with different
insertion-types (this also obviously affects overlays); for instance,
if a marker with an insertion-type of 1 is located just *before* some
deleted text, then only the deletion will be recorded, and undoing it
will cause the marker to end up *after* the re-inserted text (because
undo just calls Finsert).
Case (2) seems simple to fix, by calling `record_marker_adjustment' with
a negative argument (corresponding to the size of the deletion) for
markers with insertion-type==1 that are located at the exact beginning
of the deletion.
Can someone confirm my suspicions?
-Miles
--
Love is a snowmobile racing across the tundra. Suddenly it flips over,
pinning you underneath. At night the ice weasels come. --Nietzsche
- undo problems?,
Miles Bader <=