diff options
| author | Lute Kamstra | 2005-05-10 09:02:40 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2005-05-10 09:02:40 +0000 |
| commit | 0003d2e3191b1eb64ac347323f52c8649cbe0100 (patch) | |
| tree | 5c6a5fe0d4cb92fcffad4c5c5da6c706d22aed24 | |
| parent | 2792c60a6f54c2da179eaadea89d15f2873d1cad (diff) | |
| download | emacs-0003d2e3191b1eb64ac347323f52c8649cbe0100.tar.gz emacs-0003d2e3191b1eb64ac347323f52c8649cbe0100.zip | |
(font-lock-keywords-alist, font-lock-removed-keywords-alist): Clarify docstrings.
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/font-lock.el | 19 |
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 @@ | |||
| 1 | 2005-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 | |||
| 1 | 2005-05-10 Nick Roberts <nickrob@snap.net.nz> | 6 | 2005-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 | ||
| 415 | 2005-05-01 Lute Kamstra <lute@gnu.org> | 420 | 2005-05-01 Stefan Monnier <monnier@iro.umontreal.ca> |
| 421 | |||
| 422 | * international/latexenc.el (latexenc-find-file-coding-system): | ||
| 423 | Fix regular expressions. | ||
| 424 | |||
| 425 | 2005-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 | ||
| 421 | 2005-05-01 Nick Roberts <nickrob@snap.net.nz> | 430 | 2005-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 | |||
| 470 | optimized.") | 470 | optimized.") |
| 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 | |||
| 475 | Each 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 | |||
| 479 | If APPEND is nil, KEYWORDS are added at the beginning of | ||
| 480 | `font-lock-keywords'. If it is `set', they are used to replace the | ||
| 481 | value of `font-lock-keywords'. If APPEND is any other non-nil value, | ||
| 482 | they are added at the end. | ||
| 483 | |||
| 474 | This is normally set via `font-lock-add-keywords' and | 484 | This 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 | |||
| 490 | Each element has the form (MODE . KEYWORDS). `font-lock-set-defaults' | ||
| 491 | removes the elements in the list KEYWORDS from `font-lock-keywords' | ||
| 492 | when Font Lock is turned on in major mode MODE. | ||
| 493 | |||
| 479 | This is normally set via `font-lock-add-keywords' and | 494 | This is normally set via `font-lock-add-keywords' and |
| 480 | `font-lock-remove-keywords'.") | 495 | `font-lock-remove-keywords'.") |
| 481 | 496 | ||