summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-04-30 15:55:44 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2016-04-30 15:55:44 +0200
commitbc00dcf12983cd399127d0eea39647f29778eb02 (patch)
treea39181d59572872b2b3003e6a63b70aaa9270839 /lisp/font-lock.el
parentd96c720d0cca7c9ffbb4c712ad315bb707d6625c (diff)
downloademacs-bc00dcf12983cd399127d0eea39647f29778eb02.tar.gz
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).
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r--lisp/font-lock.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 471db6b148f..48a96f2741e 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -785,8 +785,11 @@ see the variables `c-font-lock-extra-types', `c++-font-lock-extra-types',
(defun font-lock-remove-keywords (mode keywords)
"Remove highlighting KEYWORDS for MODE.
-MODE should be a symbol, the major mode command name, such as `c-mode'
-or nil. If nil, highlighting keywords are removed for the current buffer.
+MODE should be a symbol, the major mode command name, such as
+`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,
pass nil for MODE and add the call to MODE-hook. This may fail