CC Mode: Do nothing in before/after-change-functions for text property changes
commit79fa7d7b75fa71d4332675ca28608b484731e09a
authorAlan Mackenzie <acm@muc.de>
Tue, 21 Apr 2015 14:02:10 +0000 (21 14:02 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 21 Apr 2015 14:02:10 +0000 (21 14:02 +0000)
tree042e8af5aee9e270d7faa7bc6b850b0f5fc86c04
parentb01cf822c5ac044bb550231c811a062d3a8cbeec
CC Mode: Do nothing in before/after-change-functions for text property changes

Fixes bug#20266.

lisp/progmodes/cc-mode.el (c-basic-common-init): Make
yank-handled-properties buffer local, and remove 'category from it.
(c-called-from-text-property-change-p): New function.
(c-before-change): Don't do anything if a call of the new function
returns non-nil.
(c-after-change): Don't do much if a call of the new function returns
non-nil.
(c-extend-after-change-region): Put changes to text property 'fontified
inside c-save-buffer-state.
lisp/progmodes/cc-mode.el