CC Mode: truncate the semi-nonlit cache when applying syntax-table to a quote
commit455700d69a1a6861dc8c9b2ba19733429727d3c3
authorAlan Mackenzie <acm@muc.de>
Thu, 30 Jun 2016 12:58:30 +0000 (30 12:58 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 30 Jun 2016 12:58:30 +0000 (30 12:58 +0000)
tree4b074842bf243e656adccd6e7e0320ccd7d29a19
parentfd6a133fdcd6bcdc240c05cfe645cd9064f9e744
CC Mode: truncate the semi-nonlit cache when applying syntax-table to a quote

This applies to applying or removing syntax-table text properties in raw
strings which affect the stringiness of a piece of text.  This fixes the
bug
reported in
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00695.html.

* lisp/progmodes/cc-engine.el (c-truncate-semi-nonlit-pos-cache): new
defsubst.
(c-invalidate-state-cache-1): Call new function in place of inline
manipulation.
(c-depropertize-raw-string, c-propertize-raw-string-opener): truncate the
semi-nonlit cache when pertinent syntax-table text properties get applied to
the text.
lisp/progmodes/cc-engine.el