diff options
author | Colin Walters <walters@gnu.org> | 2002-06-09 00:40:25 +0000 |
---|---|---|
committer | Colin Walters <walters@gnu.org> | 2002-06-09 00:40:25 +0000 |
commit | e9476ca8e2d271bc2f27cc0f81899b5c464becba (patch) | |
tree | 4422e6f8e4d794844d1b6d7a911be5799450f365 /lisp/font-lock.el | |
parent | df2d7e047ee7f565d16ba57d2e87fe84809dfef4 (diff) | |
download | emacs-e9476ca8e2d271bc2f27cc0f81899b5c464becba.tar.gz |
(font-lock-set-defaults-1): Variable alist is now set in
`font-lock-set-defaults'.
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r-- | lisp/font-lock.el | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index ba8b25f0980..eb69a93f846 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -152,9 +152,9 @@ ;; "Default expressions to highlight in Foo mode.") ;; ;; (add-hook 'foo-mode-hook -;; (function (lambda () -;; (make-local-variable 'font-lock-defaults) -;; (setq font-lock-defaults '(foo-font-lock-keywords t))))) +;; (lambda () +;; (make-local-variable 'font-lock-defaults) +;; (setq font-lock-defaults '(foo-font-lock-keywords t)))) ;;; Adding Font Lock support for modes: @@ -1465,9 +1465,8 @@ A LEVEL of nil is equal to a LEVEL of 0, a LEVEL of t is equal to (when (nth 4 defaults) (set (make-local-variable 'font-lock-beginning-of-syntax-function) (nth 4 defaults))) - ;; Variable alist? - (dolist (x (nthcdr 5 defaults)) - (set (make-local-variable (car x)) (cdr x))) + ;; The variable alist is set in font-core.el. + ;; Setup `font-lock-keywords' last because its value might depend ;; on other settings (e.g. font-lock-compile-keywords uses ;; font-lock-beginning-of-syntax-function). |