[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undo bug?
From: |
martin rudalics |
Subject: |
Re: undo bug? |
Date: |
Wed, 02 Apr 2008 19:01:46 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> Yes, that's indeed what I had understood from your earlier message and
> what I was responding to. You're remove the undo boundaries (i.e. the
> nil entries) and replace them by point-record entries. That would work
> fine, except that there are packages out there that look for the
> nil entries.
Too bad, indeed. Are they looking out just for entries they created
themselves?
>>Sometimes. For example I use the patch below to handle the (pretty
>>annoying) problem that when I redo an earlier insertion `point' ends up
>>_before_ the inserted text (my `undo' binds `undo-is-redo' to `equiv'
>>when calling `undo-more').
>
> Have you tried to analyze the source of the problem? Maybe there are
> cases where we incorrectly decide not to put a point-record even tho it
> is needed.
I think we should enclose every undoable character-modifiying buffer
change by a `record-point' before and a `record-point' after it. An
`undo' would reestablish the position recorded before, a `redo' the
position recorded after the change. This way we would handle all
flavors of inserting text before/after `point' as well as undoing and
redoing.
- undo bug?, Katsumi Yamaoka, 2008/04/01
- Re: undo bug?, martin rudalics, 2008/04/01
- Re: undo bug?, Katsumi Yamaoka, 2008/04/01
- Re: undo bug?, Stefan Monnier, 2008/04/01
- Re: undo bug?, martin rudalics, 2008/04/01
- Re: undo bug?, Stefan Monnier, 2008/04/02
- Re: undo bug?, martin rudalics, 2008/04/01
- Re: undo bug?, Stefan Monnier, 2008/04/02
- Re: undo bug?,
martin rudalics <=
- Re: undo bug?, Stefan Monnier, 2008/04/03
- Re: undo bug?, martin rudalics, 2008/04/03