emacs-devel
[Top][All Lists]
Advanced

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

Re: An idea: combine-change-calls


From: Stefan Monnier
Subject: Re: An idea: combine-change-calls
Date: Mon, 26 Mar 2018 17:07:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> I'm experimenting with a different strategy: surrounding the mass of
> elements in buffer-undo-list with a `(combine-change-begin ,beg ,end)
> and a `(combine-change-end ,beg ,end).

Beware: this changes the format of entries that can appear in the
buffer-undo-list, which has repercussions beyond primitive-undo, IOW it
can/will break other things such as undo-in-region and undo-tree.

Better use the (apply DELTA BEG END FUN-NAME . ARGS) form, which was
introduced specifically for use of such extensions.


        Stefan




reply via email to

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