summaryrefslogtreecommitdiff
path: root/doc/emacs
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-04-02 16:45:26 +0300
committerEli Zaretskii <eliz@gnu.org>2022-04-02 16:45:26 +0300
commit9c30276c426e0b67d288b479a9570428673de331 (patch)
treec699f8d48b06d6bfa5e49fedec2ba4a3b6c32f51 /doc/emacs
parent338f5667f46282f9b40c25bbf9704566069ec950 (diff)
downloademacs-9c30276c426e0b67d288b479a9570428673de331.tar.gz
emacs-9c30276c426e0b67d288b479a9570428673de331.tar.bz2
emacs-9c30276c426e0b67d288b479a9570428673de331.zip
; Improve documentation of 'font-lock-ignore'
* etc/NEWS: * lisp/font-lock.el (font-lock-ignore): * doc/lispref/modes.texi (Customizing Keywords): Clarify the documentation of 'font-lock-ignore'. * doc/emacs/display.texi (Font Lock): Mention 'font-lock-ignore'.
Diffstat (limited to 'doc/emacs')
-rw-r--r--doc/emacs/display.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index 4fcd2a3f7de..534bf5881e7 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -1011,10 +1011,15 @@ in C comments, use this:
@end example
@findex font-lock-remove-keywords
+@vindex font-lock-ignore
@noindent
To remove keywords from the font-lock highlighting patterns, use the
function @code{font-lock-remove-keywords}. @xref{Search-based
Fontification,,, elisp, The Emacs Lisp Reference Manual}.
+Alternatively, you can selectively disable highlighting due to some
+keywords by customizing the @code{font-lock-ignore} option,
+@pxref{Customizing Keywords,,, elisp, The Emacs Lisp Reference
+Manual}.
@cindex just-in-time (JIT) font-lock
@cindex background syntax highlighting