]> git.eshelyaron.com Git - emacs.git/commit
Fix highlight-regexp's use of Font Lock mode.
authorChong Yidong <cyd@gnu.org>
Tue, 14 Aug 2012 06:52:59 +0000 (14:52 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 14 Aug 2012 06:52:59 +0000 (14:52 +0800)
commita9f6f311c7ef2c36bb020d808b036f6f40e58237
tree86d45e59e274e406ec7ef003fcf874bf83e0ae35
parentb4599732c30ebf9eaa49986d70d64800e2b93225
Fix highlight-regexp's use of Font Lock mode.

* hi-lock.el (hi-lock-mode): Do not unilaterally enable font lock.
(hi-lock-set-pattern): When deciding whether to use font lock or
overlays, look at font-lock-mode instead of font-lock-fontified.
(hi-lock-mode, hi-lock-line-face-buffer, hi-lock-unface-buffer)
(hi-lock-face-buffer, hi-lock-face-phrase-buffer): Doc fix.

Fixes: debbugs:12168
lisp/ChangeLog
lisp/hi-lock.el