Variable: fontification-functions
fontification-functions is a buffer-local variable defined in xdisp.c.
Documentation
List of functions to call to fontify regions of text.
Each function is called with one argument POS. Functions must
fontify a region starting at POS in the current buffer, and give
fontified regions the property fontified with a non-nil value.
Note that, when long-line-optimizations-p is non-nil in the buffer,
these functions are called as if they were in a with-restriction form,
with a long-line-optimizations-in-fontification-functions label and
with the buffer narrowed to a portion around POS whose size is
specified by long-line-optimizations-region-size.
Probably introduced at or before Emacs version 21.1.
Source Code
// Defined in /usr/src/emacs/src/xdisp.c
DEFVAR_LISP ("fontification-functions", Vfontification_functions,
doc: /* List of functions to call to fontify regions of text.
Each function is called with one argument POS. Functions must
fontify a region starting at POS in the current buffer, and give
fontified regions the property `fontified' with a non-nil value.
Note that, when `long-line-optimizations-p' is non-nil in the buffer,
these functions are called as if they were in a `with-restriction' form,
with a `long-line-optimizations-in-fontification-functions' label and
with the buffer narrowed to a portion around POS whose size is
specified by `long-line-optimizations-region-size'. */);