Hi, Andreas!
On Tue, Jan 08, 2008 at 06:13:40PM +0100, Andreas Schwab wrote:
c-{beginning,end}-of-defun try to modify the buffer and thus trigger
ask-user-about-supersession-threat. To reproduce load a C file and
touch the underlying file. Then type C-M-e repeatedly. After some
tries you will be asked whether you want to edit the buffer.
Ouch!
Yes, I can reproduce this. At a guess, it's happening because of CC
Mode's extensive use of text properties. I don't (yet) see why it only
happens after a several C-M-e's rather than the first. Applying text
properties counts as modifying the buffer (I think this is a Bad Thing),
and the primitive function which applies the text properties seems to be
checking for the file having been modified. Or something like that.