"David A. Cobb" <superbiskit(a)home.com> writes:
Hrvoje Niksic wrote:
> karlheg(a)microsharp.com (Karl M. Hegbloom) writes:
>
>> Oh, I had not thought of that. So XEmacs should not restore
>> extents that got removed by deletions when you undo?
>>
> But you can tell XEmacs to do so by marking the extent as
> "duplicable".
>
Is there a hook-list run at the end of the undo process?
Per-extent or per-buffer? If you're talking about per-extent undoing,
you can define "copy" and "paste" functions that are run when the
extent needs to be shuffled around.
If not, it seems a good place for one. Font-locking could then be
rerun, at least.
Font-locking is re-run after each buffer change anyway. There's no
need to do anything special in the case of undo. The same goes for
most places where an undo hook might seem useful.