CC Mode: check for and fix missing call to before_change_functions.
commit9cf9095838aefec9871b9922a95cb4c199696eb8
authorAlan Mackenzie <acm@muc.de>
Tue, 9 Aug 2016 16:09:18 +0000 (9 16:09 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 9 Aug 2016 16:09:18 +0000 (9 16:09 +0000)
treeb83d310159220803f6a66de2e4d7dce5796ed4e4
parent8b789c8cfeaee074f581e10009d781b52bf45c81
CC Mode: check for and fix missing call to before_change_functions.

Fixes bug #24094 and bug #24074.

This can happen with `revert-buffer' or sometimes `find-file', when the file
is already in a buffer, but the file has been changed outside of Emacs.

* lisp/progmodes/cc-mode (c-after-change): When we detect a missing
invocation of c-before-change-functions, we assume the changed region is the
entire buffer, and call c-before-change explicitly before proceding.
lisp/progmodes/cc-mode.el