Kyle Jones <kyle_jones(a)wonderworks.com> writes:
Gunnar Evermann writes:
> any suggestions for a fix?
Modifications to the current buffer should be disallowed inside the
before-/after- change functions, if we hope to have any consistency
in the system.
This discussion sounds familiar. And again, I disagree with your
position. There are legitimate uses for changing the buffer from
within the before-/after- change functions, and custom has
demonstrated that.
We can fix the crash, but things like font-lock and setnu-mode,
which rely on having access to every change to operate correctly,
are still going to be screwed unless we disallow these changes.
Neither font-lock nor setnu are very useful with things like Customize
buffers. Maybe we should just say in the documentation that changing
buffer text from after-change-functions is a bad idea for that kind of
code.