Correct calculation of CC Mode's font-lock region.
commit05a5a94000b82c81dc86cb7e2f3b4010bb2a4f0b
authorAlan Mackenzie <acm@muc.de>
Mon, 30 Mar 2015 16:37:04 +0000 (30 16:37 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 30 Mar 2015 16:37:04 +0000 (30 16:37 +0000)
treedcb09fa7a5196aa42e50e0b940f9e3af0009bb21
parentd9eff02736c975dc5035e02249ff17c8a068d203
Correct calculation of CC Mode's font-lock region.

* cc-mode.el (c-fl-decl-start): Renamed from c-set-fl-decl-start.
* Change
signature such that nil is returned when no declaration is found.
(c-change-expand-fl-region): Renamed from c-change-set-fl-decl-start.
This now also handles expanding the font lock region to whole lines.
(c-context-expand-fl-region): Renamed from c-context-set-fl-decl-start.
This now also handles expanding the font lock region to whole lines.
(c-font-lock-fontify-region): When a change font lock region is
spuriously enlarged to the beginning-of-line by jit-lock, fontify the
extra bit separately from the region calculated by CC Mode.
(c-extend-after-change-region): Explicitly apply 'fontified properties
to
the extended bits of the font lock region.

* cc-langs.el (c-before-font-lock-functions)
(c-before-context-fontification-functions): Use new names for existing
functions (see above).
lisp/ChangeLog
lisp/progmodes/cc-langs.el
lisp/progmodes/cc-mode.el