Commit b31d359d authored by Alan Mackenzie's avatar Alan Mackenzie

CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669.

cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to
nil.
parent ab9252a0
2015-02-01 Alan Mackenzie <acm@muc.de>
CC Mode: Stop Font Lock forcing fontification from BOL. Fixes
debbugs#19669.
* progmodes/cc-mode.el (c-font-lock-init): Setq
font-lock-extend-region-functions to nil.
2015-04-06 Fabián Ezequiel Gallina <fgallina@gnu.org>
python.el: Do not break IPython magic completions. (Bug#19736)
......
......@@ -1302,6 +1302,14 @@ This function is called from `c-common-init', once per mode initialization."
(font-lock-mark-block-function
. c-mark-function)))
;; Prevent `font-lock-default-fontify-region' extending the region it will
;; fontify to whole lines by removing `font-lock-extend-region-whole-lines'
;; (and, coincidentally, `font-lock-extend-region-multiline' (which we do
;; not need)) from `font-lock-extend-region-functions'. (Emacs only). This
;; fixes Emacs bug #19669.
(when (boundp 'font-lock-extend-region-functions)
(setq font-lock-extend-region-functions nil))
(make-local-variable 'font-lock-fontify-region-function)
(setq font-lock-fontify-region-function 'c-font-lock-fontify-region)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment