340 |
|
|
341 |
;; Fontification variables: |
;; Fontification variables: |
342 |
|
|
|
;;;###autoload |
|
343 |
(defvar font-lock-keywords nil |
(defvar font-lock-keywords nil |
344 |
"A list of the keywords to highlight. |
"A list of the keywords to highlight. |
345 |
There are two kinds of values: user-level, and compiled. |
There are two kinds of values: user-level, and compiled. |
629 |
;; Shut up the byte compiler. |
;; Shut up the byte compiler. |
630 |
(defvar font-lock-face-attributes)) ; Obsolete but respected if set. |
(defvar font-lock-face-attributes)) ; Obsolete but respected if set. |
631 |
|
|
|
;;;###autoload |
|
632 |
(defun font-lock-mode-internal (arg) |
(defun font-lock-mode-internal (arg) |
633 |
;; Turn on Font Lock mode. |
;; Turn on Font Lock mode. |
634 |
(when arg |
(when arg |
650 |
(font-lock-unfontify-buffer) |
(font-lock-unfontify-buffer) |
651 |
(font-lock-turn-off-thing-lock))) |
(font-lock-turn-off-thing-lock))) |
652 |
|
|
|
;;;###autoload |
|
653 |
(defun font-lock-add-keywords (mode keywords &optional append) |
(defun font-lock-add-keywords (mode keywords &optional append) |
654 |
"Add highlighting KEYWORDS for MODE. |
"Add highlighting KEYWORDS for MODE. |
655 |
|
|
768 |
;; is added and removed several times. |
;; is added and removed several times. |
769 |
;; |
;; |
770 |
;; (II) The keywords are removed from the current buffer. |
;; (II) The keywords are removed from the current buffer. |
|
;;;###autoload |
|
771 |
(defun font-lock-remove-keywords (mode keywords) |
(defun font-lock-remove-keywords (mode keywords) |
772 |
"Remove highlighting KEYWORDS for MODE. |
"Remove highlighting KEYWORDS for MODE. |
773 |
|
|
977 |
;; directives correctly and cleanly. (It is the same problem as fontifying |
;; directives correctly and cleanly. (It is the same problem as fontifying |
978 |
;; multi-line strings and comments; regexps are not appropriate for the job.) |
;; multi-line strings and comments; regexps are not appropriate for the job.) |
979 |
|
|
|
;;;###autoload |
|
980 |
(defun font-lock-fontify-buffer () |
(defun font-lock-fontify-buffer () |
981 |
"Fontify the current buffer the way the function `font-lock-mode' would." |
"Fontify the current buffer the way the function `font-lock-mode' would." |
982 |
(interactive) |
(interactive) |