Jan Vroonhof <vroonhof(a)math.ethz.ch> writes:
... what happens when the buffer gets killed during the loop?
You lose. I didn't really pay much attention to that case,
considering it highly extreme and even contrived. I was probably
wrong.
How do we get in the situation where after-change-functions kill the
buffer? Can that really be intentional?
Footnotes:
[1] Actually by another a-c-f running because an lisp event came in
that triggered insertions in another buffer.!
At one time I considered modifying inside_change_hook to be a
per-buffer flag. Currently, if an after/before-change function writes
to *another* buffer, the *other* buffer's after/before-change function
won't get run. That's wrong.