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:09:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> This makes undo blindingly fast after a large comment-region operation.
> It doesn't always leave point in the right place (I understand why -
> it's the C function record_point failing to record point because the top
> element of buffer-undo-list is no longer nil; it's a
> combine-change-begin list).

You can easily fix this by explicitly pushing the position of point onto
buffer-undo-list at the beginning.

> Basically, the combine-change-calls idea works.  Given enough
> encouragement, I will get my disorganised changes into a proper patch
> with documentation, with a view to pushing it to master.

Go, go, go, you can do it!


        Stefan




reply via email to

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