]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Stabilize the fontification in the presence of "register" keywords
authorAlan Mackenzie <acm@muc.de>
Tue, 8 Nov 2022 11:53:37 +0000 (11:53 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 8 Nov 2022 11:53:37 +0000 (11:53 +0000)
commitb8134a7eba2e0334925e011e953044ea33408ec6
tree42fc60a396fd86d9d57e712933db2650666b8064
parent68e2a9cd92996dd55ff9599dc1bf99c70070cddb
CC Mode: Stabilize the fontification in the presence of "register" keywords

This fixes bug #58883.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): New variable
unsafe-maybe.  Set it in CASE 10 rather than setting c-record-type-identifiers
to nil.  Near the end of the function, when unsafe-maybe is set, bind
c-promote-possible-types to 'just-one rather than t around the call to
c-forward-type.
lisp/progmodes/cc-engine.el