]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Remove annoying background fontification. Should fix bug #52298
authorAlan Mackenzie <acm@muc.de>
Sun, 19 Dec 2021 14:26:06 +0000 (14:26 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 19 Dec 2021 14:29:30 +0000 (14:29 +0000)
commit22b8d6813217187e3121338b93deabe62add99c1
tree053f53cf82888c67aa47334f43e18df25a0543d9
parent09af054dabd163125571ac470834cdb6de5ba672
CC Mode: Remove annoying background fontification.  Should fix bug #52298

Partially revert the commits from 2021-10-24 - 2021-10-26, "CC Mode: Fontify
"found types" which are recognized after being first scanned".

This removes the background fontification which ran off of a 0.1s timer, but
leaves the facility of normal fontification causing the fontification
throughout the buffer of newly found types.

* lisp/progmodes/cc-fonts.el (c-find-types-background)
(c-type-finder-timer-func): Remove.

* lisp/progmodes/cc-mode.el (c-type-finder-timer, c-inhibit-type-finder)
(c-type-finder-pos, c-post-gc-hook): Remove.
(c-leave-cc-mode-mode): Remove the manipulations of c-type-finder-timer and
c-post-gc-hook.
(c-basic-common-init): Remove the manipulations of c-type-finder-pos,
c-type-finder-timer, and c-post-gc-hook.

* lisp/progmodes/cc-vars.el (c-type-finder-time-slot)
(c-type-finder-repeat-time, c-type-finder-chunk-size): Remove.

* doc/misc/cc-mode.texi (Found Types): Remove.  Amend some menu entries.
doc/misc/cc-mode.texi
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-mode.el
lisp/progmodes/cc-vars.el