]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Prevent rapid alternation of fontification of "found types"
authorAlan Mackenzie <acm@muc.de>
Thu, 30 Dec 2021 11:32:25 +0000 (11:32 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 30 Dec 2021 11:35:24 +0000 (11:35 +0000)
commitcc9ac56081719f553b3e7758c391c595c3fa4eaf
treefd72827c57a68088f2ea34e93684556a0df938a4
parent8b90d91f2160c04a4f1efb0a5c05dd7c38ef0110
CC Mode: Prevent rapid alternation of fontification of "found types"

This fixes bug #52863.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): When a new type is
found, postpone entering it into c-found-types (and thus triggering the
fontification of that type throughout the buffer) until the end of the
function, when we're sure that the "type" found actually is a type.
lisp/progmodes/cc-engine.el