So, the crash I sent an email about the other day was related to
font-locking; if it was turned on, I got the crash. I have no idea if
this is the same font-lock related crash that is being discussed, but
the following patch fixes at least my crash. I also have no idea if
this is the correct thing to do -- everything apprently seems to still
continue to work.
The problem was that if find_end_of_comment was incrementing the from
index before returning it, and then scan_sexps_forward would increment
it immediately after, thus causing it to point to one past the end of
the buffer. Upon returning it state, Fparse_partial_sexp would
BUF_SET_PT there, and thus things would blow up. Not good.
So, anyway, this fixes it for me -- again, this could be the horribly
wrong thing to do and is going to break lots and lots of other things,
but it's working okay for me :-)
- Vlad