Variable: font-lock-ignore
font-lock-ignore is a customizable variable defined in
font-lock.el.gz.
Value
nil
Documentation
Rules to selectively disable fontifications due to font-lock-keywords.
If non-nil, the value should be a list of condition sets of the form
(SYMBOL CONDITION ...)
where:
- SYMBOL is a symbol, usually a major or minor mode. The subsequent
CONDITIONs apply if SYMBOL is bound as variable and its value is non-nil.
If SYMBOL is a symbol of a mode, that means the buffer has that mode
enabled (for major modes, it means the buffer's major mode is derived
from SYMBOL's mode).
- Each CONDITION can be one of the following:
- A symbol, typically a face. It matches any element of
font-lock-keywords that references the symbol. The symbol is
interpreted as a glob pattern; in particular, * matches
everything, ? matches any single character, and [abcd]
matches one character from the set.
- A string. It matches any element of font-lock-keywords whose
MATCHER is a regexp that matches the string. This can be used to
disable fontification of a particular programming keyword.
- A form (pred FUNCTION). It matches an element of font-lock-keywords
if FUNCTION, when called with the element as the argument, returns
non-nil.
- A form (not CONDITION). It matches if CONDITION doesn't.
- A form (and CONDITION ...). It matches if all the provided
CONDITIONs match.
- A form (or CONDITION ...). It matches if at least one of the
provided CONDITIONs matches.
- A form (except CONDITIONs ...). This can be used only at top level
or inside an or clause. It undoes the effect of previous
matching CONDITIONs on the same level.
In each buffer, fontifications due to the elements of font-lock-keywords
that match at least one applicable CONDITION are disabled.
This variable was added, or its default value changed, in Emacs 29.1.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/font-lock.el.gz
(defcustom font-lock-ignore nil
"Rules to selectively disable fontifications due to `font-lock-keywords'.
If non-nil, the value should be a list of condition sets of the form
(SYMBOL CONDITION ...)
where:
- SYMBOL is a symbol, usually a major or minor mode. The subsequent
CONDITIONs apply if SYMBOL is bound as variable and its value is non-nil.
If SYMBOL is a symbol of a mode, that means the buffer has that mode
enabled (for major modes, it means the buffer's major mode is derived
from SYMBOL's mode).
- Each CONDITION can be one of the following:
- A symbol, typically a face. It matches any element of
`font-lock-keywords' that references the symbol. The symbol is
interpreted as a glob pattern; in particular, `*' matches
everything, `?' matches any single character, and `[abcd]'
matches one character from the set.
- A string. It matches any element of `font-lock-keywords' whose
MATCHER is a regexp that matches the string. This can be used to
disable fontification of a particular programming keyword.
- A form (pred FUNCTION). It matches an element of `font-lock-keywords'
if FUNCTION, when called with the element as the argument, returns
non-nil.
- A form (not CONDITION). It matches if CONDITION doesn't.
- A form (and CONDITION ...). It matches if all the provided
CONDITIONs match.
- A form (or CONDITION ...). It matches if at least one of the
provided CONDITIONs matches.
- A form (except CONDITIONs ...). This can be used only at top level
or inside an `or' clause. It undoes the effect of previous
matching CONDITIONs on the same level.
In each buffer, fontifications due to the elements of `font-lock-keywords'
that match at least one applicable CONDITION are disabled."
:type '(alist :key-type symbol :value-type sexp)
:group 'font-lock
:version "29.1")