]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Minor corrections and tidy ups for cache invalidation
authorAlan Mackenzie <acm@muc.de>
Sat, 28 Dec 2024 17:16:04 +0000 (17:16 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:22:36 +0000 (21:22 +0100)
commit5a11a91f68c482f2ba72e3fbaa8c1f1f66aa1a2e
tree871bb43168d88cbe5d279cb76ad62a8fdd29d957
parent5800582dc555c369a64fd941f7438fc9c058cc17
CC Mode: Minor corrections and tidy ups for cache invalidation

These cache variables are c-lit-pos-cache-limit,
c-semi-near-cache-limit, c-full-near-cache-limit, and
c-state-cache-invalid-pos.

* lisp/progmodes/cc-awk.el
(c-awk-set-string-regexp-syntax-table-properties): Invalidate
the caches after changing the 'syntax-table property.

* lisp/progmodes/cc-defs.el (c-put-string-fence-trim-caches):
New macro.
(c-unmark-<-or->-as-paren): New name for c-unmark-<->-as-paren.
(Also renamed throughout CC Mode)

* lisp/progmodes/cc-engine.el (c-propertize-ml-string-opener):
Add missing cache invalidation.

* lisp/progmodes/cc-mode.el (c-neutralize-CPP-line): Remove
syntax-table properties from < and > as needed.
(c-put-syn-tab): Add missing cache invalidation.

(cherry picked from commit 0334b0743f83a3e69d1d3a426efbba1d2a5f2cc6)
lisp/progmodes/cc-awk.el
lisp/progmodes/cc-defs.el
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-mode.el