• Alan Mackenzie's avatar
    CC Mode: Fix two bugs in the "state cache". · c455e609
    Alan Mackenzie authored
    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.
    c455e609
cc-engine.el 522 KB