]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Add a workaround for syntax-ppss ignoring syntax-table prop changes
authorAlan Mackenzie <acm@muc.de>
Wed, 12 Jun 2019 19:17:22 +0000 (19:17 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 12 Jun 2019 19:17:22 +0000 (19:17 +0000)
commit468517c8b8322b07e202a2036e718e182ec569db
tree537e25522c5082f7d940aa0a1c70cd48fda953a3
parent2d71e68428b10c593da2dd411d70ed2b4a8632c0
CC Mode: Add a workaround for syntax-ppss ignoring syntax-table prop changes

* lisp/progmodes/cc-engine.el (c-truncate-lit-pos-cache): Maintain the new
variable c-syntax-table-hwm after buffer changes.

* lisp/progmodes/cc-mode.el (c-syntax-table-hwm): New variable.
(c-before-change): Set c-syntax-table-hwm to "infinity".
(c-after-change): Call syntax-ppss-flush-cache, just before a font locking is
due to take place.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-mode.el