Variable: elisp-fontify-symbol-precedence-function

elisp-fontify-symbol-precedence-function is a customizable variable defined in elisp-mode.el.gz.

Value

ignore

Documentation

Function that determines the precedence of semantic highlighting.

The function takes two arguments, BEG and END, which are the beginning and end positions in the current buffer of a symbol that is about to be fontified during semantic highlighting. The function is called after font-lock-keywords were already applied. If the function returns nil, then semantic highlighting takes precedence, otherwise the highlighting that font-lock-keywords applied takes precedence, if any. By default, semantic highlighting takes precedence.

This variable was added, or its default value changed, in Emacs 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defcustom elisp-fontify-symbol-precedence-function #'ignore
  "Function that determines the precedence of semantic highlighting.

The function takes two arguments, BEG and END, which are the beginning
and end positions in the current buffer of a symbol that is about to be
fontified during semantic highlighting.  The function is called after
`font-lock-keywords' were already applied.  If the function returns nil,
then semantic highlighting takes precedence, otherwise the highlighting
that `font-lock-keywords' applied takes precedence, if any.  By default,
semantic highlighting takes precedence."
  :type '(choice
          (function-item :tag "Prioritize semantic highlighting" ignore)
          (function-item :tag "Prioritize `font-lock-keywords'" always)
          (function :tag "Custom function"))
  :version "31.1")