Mercurial > emacs
comparison lisp/font-core.el @ 61825:eb334300d039
(font-lock-defaults): Fix docstring.
author | Lute Kamstra <lute@gnu.org> |
---|---|
date | Mon, 25 Apr 2005 11:09:30 +0000 |
parents | b76b7700df8d |
children | 1db2bedaa05e 08185296b491 |
comparison
equal
deleted
inserted
replaced
61824:76ad9d04e339 | 61825:eb334300d039 |
---|---|
30 ;; command should make it buffer-local and set it to provide the set up.) | 30 ;; command should make it buffer-local and set it to provide the set up.) |
31 (defvar font-lock-defaults nil | 31 (defvar font-lock-defaults nil |
32 "Defaults for Font Lock mode specified by the major mode. | 32 "Defaults for Font Lock mode specified by the major mode. |
33 Defaults should be of the form: | 33 Defaults should be of the form: |
34 | 34 |
35 (KEYWORDS KEYWORDS-ONLY CASE-FOLD SYNTAX-ALIST SYNTAX-BEGIN ...) | 35 (KEYWORDS [KEYWORDS-ONLY [CASE-FOLD [SYNTAX-ALIST [SYNTAX-BEGIN ...]]]]) |
36 | 36 |
37 KEYWORDS may be a symbol (a variable or function whose value is the keywords to | 37 KEYWORDS may be a symbol (a variable or function whose value is the keywords to |
38 use for fontification) or a list of symbols. If KEYWORDS-ONLY is non-nil, | 38 use for fontification) or a list of symbols. If KEYWORDS-ONLY is non-nil, |
39 syntactic fontification (strings and comments) is not performed. | 39 syntactic fontification (strings and comments) is not performed. |
40 If CASE-FOLD is non-nil, the case of the keywords is ignored when fontifying. | 40 If CASE-FOLD is non-nil, the case of the keywords is ignored when fontifying. |
64 Typical values are `mark-defun' for programming modes or `mark-paragraph' for | 64 Typical values are `mark-defun' for programming modes or `mark-paragraph' for |
65 textual modes (i.e., the mode-dependent function is known to put point and mark | 65 textual modes (i.e., the mode-dependent function is known to put point and mark |
66 around a text block relevant to that mode). | 66 around a text block relevant to that mode). |
67 | 67 |
68 Other variables include that for syntactic keyword fontification, | 68 Other variables include that for syntactic keyword fontification, |
69 `font-lock-syntactic-keywords' | 69 `font-lock-syntactic-keywords' and those for buffer-specialized fontification |
70 and those for buffer-specialized fontification functions, | 70 functions, `font-lock-fontify-buffer-function', |
71 `font-lock-fontify-buffer-function', `font-lock-unfontify-buffer-function', | 71 `font-lock-unfontify-buffer-function', `font-lock-fontify-region-function', |
72 `font-lock-fontify-region-function', `font-lock-unfontify-region-function', | 72 `font-lock-unfontify-region-function', and `font-lock-inhibit-thing-lock'.") |
73 `font-lock-inhibit-thing-lock' and `font-lock-maximum-size'.") | |
74 (make-variable-buffer-local 'font-lock-defaults) | 73 (make-variable-buffer-local 'font-lock-defaults) |
75 | 74 |
76 (defvar font-lock-defaults-alist nil | 75 (defvar font-lock-defaults-alist nil |
77 "Alist of fall-back Font Lock defaults for major modes. | 76 "Alist of fall-back Font Lock defaults for major modes. |
78 | 77 |