1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-18 03:40:47 -08:00

Doc fix for font-lock-remove-keywords

* lisp/font-lock.el (font-lock-remove-keywords): Add a link to
`font-lock-add-keywords' to describe KEYWORDS (bug#18634).

(cherry picked from commit bc00dcf129)
This commit is contained in:
Lars Ingebrigtsen 2016-04-30 15:55:44 +02:00
parent 7a03d55230
commit 05194cbeaf

View file

@ -785,8 +785,11 @@ see the variables `c-font-lock-extra-types', `c++-font-lock-extra-types',
(defun font-lock-remove-keywords (mode keywords) (defun font-lock-remove-keywords (mode keywords)
"Remove highlighting KEYWORDS for MODE. "Remove highlighting KEYWORDS for MODE.
MODE should be a symbol, the major mode command name, such as `c-mode' MODE should be a symbol, the major mode command name, such as
or nil. If nil, highlighting keywords are removed for the current buffer. `c-mode' or nil. If nil, highlighting keywords are removed for
the current buffer.
For a description of KEYWORDS, see `font-lock-add-keywords'.
To make the removal apply to modes derived from MODE as well, To make the removal apply to modes derived from MODE as well,
pass nil for MODE and add the call to MODE-hook. This may fail pass nil for MODE and add the call to MODE-hook. This may fail