Fix C++ class initializers not always being fontified at mode start.
commiteaa5dc9d102d10c79f10bee1994ad922b8fcf9c4
authorAlan Mackenzie <acm@muc.de>
Thu, 27 Jul 2017 17:56:23 +0000 (27 17:56 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 27 Jul 2017 17:56:23 +0000 (27 17:56 +0000)
treec57927ad89a09bc01269f62d946e4e05f5161192
parent30e6e558701ebc781cdca3b9d61d995004cfef7d
Fix C++ class initializers not always being fontified at mode start.

The problem here happened when an "outer list" of declarations moved beyond an
"inner list" containing class initializers.  These weren't being checked for
by the code.

Also, fix places in c-get-fontification-context where point is undefined.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): when argument
not-front-decl is set, test for class initializers.  Also, anchor point in
places where it is moved and is otherwise undefined.
lisp/progmodes/cc-fonts.el