emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undo bug?


From: Stefan Monnier
Subject: Re: undo bug?
Date: Tue, 01 Apr 2008 15:25:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> I'm wondering why we have to use last_point_position.
>> It seems to be asking for problems because it is delimited by command
>> processing, whereas the undo records are delimited by undo-boundary:
>> there is a correlation between the two, but no equivalence.
>> 
>> I.e. I suggest we introduce last_undo_boundary_pos and use it in place
>> of last_point_position in undo.c.
>> It'd be set to PT in Fundo_boundary (which could/should also set
>> last_undo_buffer).

> Couldn't we do away with undo-boundaries and always undo until the next
> recorded position of `point'?

In theory we could, but that may break various packages: of all the
supported undo records, the "undo-boundary" is probably the only one
that is used by external packages ;-(

Instead the current code tries to only insert a point-record when
it's actually necessary.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]