diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2009-06-19 14:22:39 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2009-06-19 14:22:39 +0000 |
commit | 347437a5dcbdd4c5606b1ecdbe9ed90dab3d3e12 (patch) | |
tree | 74ddee726d33ded63fa2439aeb751f87fa54f67c /lisp/font-core.el | |
parent | ec7709ba14fdd45eb62ad88a233285a0147fc37c (diff) | |
download | emacs-347437a5dcbdd4c5606b1ecdbe9ed90dab3d3e12.tar.gz |
* font-core.el (turn-on-font-lock-if-desired): Correctly handle
the case where font-lock-global-modes is a list that doesn't begin
with `not'.
Diffstat (limited to 'lisp/font-core.el')
-rw-r--r-- | lisp/font-core.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/font-core.el b/lisp/font-core.el index b94c0804846..88c67d8dece 100644 --- a/lisp/font-core.el +++ b/lisp/font-core.el @@ -291,7 +291,7 @@ means that Font Lock mode is turned on for buffers in C and C++ modes only." t) ((eq (car-safe font-lock-global-modes) 'not) (not (memq major-mode (cdr font-lock-global-modes)))) - (t (memq major-mode (cdr font-lock-global-modes)))) + (t (memq major-mode font-lock-global-modes))) (let (inhibit-quit) (turn-on-font-lock)))) |