]> git.eshelyaron.com Git - emacs.git/commit
Fix a bug in the state cache mechanism. Refactor this a bit.
authorAlan Mackenzie <acm@muc.de>
Wed, 23 Jan 2013 18:58:11 +0000 (18:58 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 23 Jan 2013 18:58:11 +0000 (18:58 +0000)
commit267eacb5e3ef38b6e1ac70ee5e1922f58d764f15
treefc1c7ec1cd6d6ff1f9927924b797cf141f9e01c4
parent6d2851de77e7828218bec1bd57779277fa80e129
Fix a bug in the state cache mechanism.  Refactor this a bit.

cc-engine.el (c-parse-state-get-strategy): Remove the `cache-pos' element
from the return value.
(c-append-lower-brace-pair-to-state-cache): "Narrow" to end of buffer to
enable proper searching from beyond HERE.
Amend the test for detecting the sought brace pair.  Amend the value
written to the "brace desert cache" when the brace isn't found.
(c-remove-stale-state-cache): Rename `good-pos' to `start-point', and
several other variables analogously.
(c-remove-stale-state-cache-backwards): Change `cache-pos' from a
parameter to a locally calculated variable.
(c-parse-state-1): Change the calling conventions to the two defuns
involving `cache-pos'.
lisp/ChangeLog
lisp/progmodes/cc-engine.el