]> git.eshelyaron.com Git - emacs.git/commit
Debug and disentangle the literal cacheing in CC Mode
authorAlan Mackenzie <acm@muc.de>
Sat, 1 Jun 2019 20:15:13 +0000 (20:15 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 1 Jun 2019 20:15:13 +0000 (20:15 +0000)
commitbd5ca5597981949f0c8cac4e8844c7c56de15c51
treeebb9de4e812ff16dd5c1cbd7a7b5feaeb7d864cb
parent99bc4af9c883d0faa5a1387cb26c1cbf09feb958
Debug and disentangle the literal cacheing in CC Mode

(Final Commit)

* lisp/progmodes/cc-engine.el (c-semi-trim-near-cache): Correct a comparison
with the wrong ...-limit variable.
(c-semi-pp-to-literal): Remove a wrong setting of c-lit-pos-cache-limit.
(c-full-get-near-cache-entry): Eliminate extravagant and unneeded coding.
(c-state-cache-init, c-record-parse-state-state): No longer manipulate
c-lit-pos-cache, which is no longer regarded as part of c-parse-state.

* lisp/progmodes/cc-mode.el (c-basic-common-init): Call
c-truncate-lit-pos-cache to initialize the literal cache.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-mode.el