Package: cc-mode I run cc-mode with c parse state debugging turned on. In the course of normal usage, I found a file that reliably triggers a cache state inconsistency. (This is a courtesy report. I'm not actually encountering any bad cc-mode behavior right now.) Reproducer: emacs -Q C-x C-f test.h RET M-x c-toggle-parse-state-cache RET M-x what-line C-v M-x what-line The resulting log in *Messages*: c-debug-parse-state enabled Line 1 c-parse-state inconsistency at 2465: using cache: (2462 (1208 . 1674)), from scratch: (2462 (1863 . 2060)). POINT-MIN: 1 Old state: (setq c-state-cache '(2233 2219 2150 (1863 . 2060)) c-state-cache-good-pos 2151 c-state-nonlit-pos-cache nil c-state-nonlit-pos-cache-limit 1 c-state-brace-pair-desert '(1 . 1208) c-state-point-min 1 c-state-point-min-lit-type nil c-state-point-min-lit-start nil c-state-min-scan-pos 1 c-state-old-cpp-beg (copy-marker 1769) c-state-old-cpp-end (copy-marker 2432) c-parse-state-point 2244) c-parse-state inconsistency at 2524: using cache: (2509 (1208 . 1674)), from scratch: (2509 (1863 . 2060)). POINT-MIN: 1 Old state: (setq c-state-cache '(2462 (1208 . 1674)) c-state-cache-good-pos 2433 c-state-nonlit-pos-cache nil c-state-nonlit-pos-cache-limit 1 c-state-brace-pair-desert '(1 . 1208) c-state-point-min 1 c-state-point-min-lit-type nil c-state-point-min-lit-start nil c-state-min-scan-pos 1 c-state-old-cpp-beg (copy-marker 2434) c-state-old-cpp-end (copy-marker 2482) c-parse-state-point 2465) c-parse-state inconsistency at 2600: using cache: (2592 (1208 . 1674)), from scratch: (2592 (1863 . 2060)). POINT-MIN: 1 Old state: (setq c-state-cache '(2509 (1208 . 1674)) c-state-cache-good-pos 2483 c-state-nonlit-pos-cache nil c-state-nonlit-pos-cache-limit 1 c-state-brace-pair-desert '(1 . 1208) c-state-point-min 1 c-state-point-min-lit-type nil c-state-point-min-lit-start nil c-state-min-scan-pos 1 c-state-old-cpp-beg (copy-marker 2483) c-state-old-cpp-end (copy-marker 2541) c-parse-state-point 2524) c-parse-state inconsistency at 2610: using cache: (2592 (1208 . 1674)), from scratch: (2592 (1863 . 2060)). POINT-MIN: 1 Old state: (setq c-state-cache '(2592 (1208 . 1674)) c-state-cache-good-pos 2566 c-state-nonlit-pos-cache nil c-state-nonlit-pos-cache-limit 1 c-state-brace-pair-desert '(1 . 1208) c-state-point-min 1 c-state-point-min-lit-type nil c-state-point-min-lit-start nil c-state-min-scan-pos 1 c-state-old-cpp-beg (copy-marker 2543) c-state-old-cpp-end (copy-marker 2634) c-parse-state-point 2600) Line 32