]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix the timing of application and removal of string fence properties
authorAlan Mackenzie <acm@muc.de>
Fri, 2 Aug 2019 11:24:38 +0000 (11:24 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 2 Aug 2019 11:24:38 +0000 (11:24 +0000)
commit2ca12bb3de7f76446c102bb1e133f6ac03f7d8be
tree62f814ed7147a8f3276e521751724835f022707c
parentccc52f1d97ad71f2af3f237168018180fa4f873f
CC Mode: Fix the timing of application and removal of string fence properties

This fixes bug #36897.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Check
string fence text properties are actually present on string delimiters before
trying to remove them.
(c-before-change): Amend the nesting of unwind-protect, widen,
c-restore-string-fences, and c-clear-string-fences.  Move
invalidate-state-cache to outside of the widening.
(c-after-change): Amend the nesting of unwind-protect, widen,
c-restore-string-fences, and c-clear-string-fences.
lisp/progmodes/cc-mode.el