aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/font-lock.el
diff options
context:
space:
mode:
authorLute Kamstra <[email protected]>2005-05-10 09:02:40 +0000
committerLute Kamstra <[email protected]>2005-05-10 09:02:40 +0000
commit0003d2e3191b1eb64ac347323f52c8649cbe0100 (patch)
tree5c6a5fe0d4cb92fcffad4c5c5da6c706d22aed24 /lisp/font-lock.el
parent2792c60a6f54c2da179eaadea89d15f2873d1cad (diff)
(font-lock-keywords-alist, font-lock-removed-keywords-alist): Clarify docstrings.
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r--lisp/font-lock.el19
1 files changed, 17 insertions, 2 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 2121bde8e4..d2ffdf44bd 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -470,12 +470,27 @@ user-level keywords, but normally their values have been
optimized.")
(defvar font-lock-keywords-alist nil
- "Alist of `font-lock-keywords' local to a `major-mode'.
+ "Alist of additional `font-lock-keywords' elements for major modes.
+
+Each element has the form (MODE KEYWORDS . APPEND).
+`font-lock-set-defaults' adds the elements in the list KEYWORDS to
+`font-lock-keywords' when Font Lock is turned on in major mode MODE.
+
+If APPEND is nil, KEYWORDS are added at the beginning of
+`font-lock-keywords'. If it is `set', they are used to replace the
+value of `font-lock-keywords'. If APPEND is any other non-nil value,
+they are added at the end.
+
This is normally set via `font-lock-add-keywords' and
`font-lock-remove-keywords'.")
(defvar font-lock-removed-keywords-alist nil
- "Alist of `font-lock-keywords' removed from `major-mode'.
+ "Alist of `font-lock-keywords' elements to be removed for major modes.
+
+Each element has the form (MODE . KEYWORDS). `font-lock-set-defaults'
+removes the elements in the list KEYWORDS from `font-lock-keywords'
+when Font Lock is turned on in major mode MODE.
+
This is normally set via `font-lock-add-keywords' and
`font-lock-remove-keywords'.")