aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2005-05-10 09:02:40 +0000
committerLute Kamstra2005-05-10 09:02:40 +0000
commit0003d2e3191b1eb64ac347323f52c8649cbe0100 (patch)
tree5c6a5fe0d4cb92fcffad4c5c5da6c706d22aed24
parent2792c60a6f54c2da179eaadea89d15f2873d1cad (diff)
downloademacs-0003d2e3191b1eb64ac347323f52c8649cbe0100.tar.gz
emacs-0003d2e3191b1eb64ac347323f52c8649cbe0100.zip
(font-lock-keywords-alist, font-lock-removed-keywords-alist): Clarify docstrings.
-rw-r--r--lisp/ChangeLog15
-rw-r--r--lisp/font-lock.el19
2 files changed, 29 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3fb3ff84e5e..8a42652db07 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-05-10 Lute Kamstra <lute@gnu.org>
2
3 * font-lock.el (font-lock-keywords-alist)
4 (font-lock-removed-keywords-alist): Clarify docstrings.
5
12005-05-10 Nick Roberts <nickrob@snap.net.nz> 62005-05-10 Nick Roberts <nickrob@snap.net.nz>
2 7
3 * progmodes/gdb-ui.el (gdb-macro-info): New variable. 8 * progmodes/gdb-ui.el (gdb-macro-info): New variable.
@@ -412,11 +417,15 @@
412 with mode-require-final-newline. 417 with mode-require-final-newline.
413 (mode-require-final-newline): Doc fix. 418 (mode-require-final-newline): Doc fix.
414 419
4152005-05-01 Lute Kamstra <lute@gnu.org> 4202005-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
421
422 * international/latexenc.el (latexenc-find-file-coding-system):
423 Fix regular expressions.
424
4252005-05-01 David Kastrup <dak@gnu.org>
416 426
417 * international/latexenc.el (latexenc-find-file-coding-system): 427 * international/latexenc.el (latexenc-find-file-coding-system):
418 Fix regular expressions. Suggested by David Kastrup <dak@gnu.org> 428 Fix regular expressions.
419 and Stefan Monnier <monnier@iro.umontreal.ca>.
420 429
4212005-05-01 Nick Roberts <nickrob@snap.net.nz> 4302005-05-01 Nick Roberts <nickrob@snap.net.nz>
422 431
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 2121bde8e49..d2ffdf44bdb 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -470,12 +470,27 @@ user-level keywords, but normally their values have been
470optimized.") 470optimized.")
471 471
472(defvar font-lock-keywords-alist nil 472(defvar font-lock-keywords-alist nil
473 "Alist of `font-lock-keywords' local to a `major-mode'. 473 "Alist of additional `font-lock-keywords' elements for major modes.
474
475Each element has the form (MODE KEYWORDS . APPEND).
476`font-lock-set-defaults' adds the elements in the list KEYWORDS to
477`font-lock-keywords' when Font Lock is turned on in major mode MODE.
478
479If APPEND is nil, KEYWORDS are added at the beginning of
480`font-lock-keywords'. If it is `set', they are used to replace the
481value of `font-lock-keywords'. If APPEND is any other non-nil value,
482they are added at the end.
483
474This is normally set via `font-lock-add-keywords' and 484This is normally set via `font-lock-add-keywords' and
475`font-lock-remove-keywords'.") 485`font-lock-remove-keywords'.")
476 486
477(defvar font-lock-removed-keywords-alist nil 487(defvar font-lock-removed-keywords-alist nil
478 "Alist of `font-lock-keywords' removed from `major-mode'. 488 "Alist of `font-lock-keywords' elements to be removed for major modes.
489
490Each element has the form (MODE . KEYWORDS). `font-lock-set-defaults'
491removes the elements in the list KEYWORDS from `font-lock-keywords'
492when Font Lock is turned on in major mode MODE.
493
479This is normally set via `font-lock-add-keywords' and 494This is normally set via `font-lock-add-keywords' and
480`font-lock-remove-keywords'.") 495`font-lock-remove-keywords'.")
481 496