aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Mackenzie2013-01-23 18:58:11 +0000
committerAlan Mackenzie2013-01-23 18:58:11 +0000
commit267eacb5e3ef38b6e1ac70ee5e1922f58d764f15 (patch)
treefc1c7ec1cd6d6ff1f9927924b797cf141f9e01c4 /src
parent6d2851de77e7828218bec1bd57779277fa80e129 (diff)
downloademacs-267eacb5e3ef38b6e1ac70ee5e1922f58d764f15.tar.gz
emacs-267eacb5e3ef38b6e1ac70ee5e1922f58d764f15.zip
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'.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions