diff options
author | Alan Mackenzie <acm@muc.de> | 2019-11-14 19:51:01 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2019-11-14 19:51:01 +0000 |
commit | c455e609bdf065c3177eec29234348809cdc372c (patch) | |
tree | 2012a06e37d6d269dcd1600c8fb40ccf6746ceaf /test/lisp/emacs-lisp | |
parent | 30e944b66b24254e007381c80237e96c721a127c (diff) | |
download | emacs-c455e609bdf065c3177eec29234348809cdc372c.tar.gz emacs-c455e609bdf065c3177eec29234348809cdc372c.tar.bz2 emacs-c455e609bdf065c3177eec29234348809cdc372c.zip |
CC Mode: Fix two bugs in the "state cache".
This (along with a suggestion to the OP to set
open-paren-in-column-0-is-defun-start to nil) fixes bug #37910. It may also
have fixed bug #5490 and bug #18072.
* lisp/progmodes/cc-engine.el (c-state-cache-non-literal-place): Remove thi
non-sensical function, replacing it with ....
(c-state-cache-lower-good-pos): New function.
(c-renarrow-state-cache, c-append-lower-brace-pair-to-state-cache)
(c-remove-stale-state-cache, c-remove-stale-state-cache-backwards): Instead of
altering the state-cache list structure with setcar and setcdr, use setq and
consing.
(c-parse-state-1): Call c-state-cache-lower-good-pos rather than
c-state-cache-non-literal-place.
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions