* lisp/hi-lock.el: Refine the choice of default face.
authorJambunathan K <kjambunathan@gmail.com>
Mon, 10 Dec 2012 18:33:59 +0000 (13:33 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 10 Dec 2012 18:33:59 +0000 (13:33 -0500)
commitc868b91923f344c5e0e3be990da49643068500c1
tree738514a350460b5038d4b777a4697c3fea556b15
parent743fa5cbdd42a820c4320599a14aab925dcdbc8b
* lisp/hi-lock.el: Refine the choice of default face.
(hi-lock-keyword->face): New function.  Use it wherever we used
cadadadr instead.
(hi-lock--regexps-at-point): Ignore faces that can't come from hi-lock.
(hi-lock--last-face): Remove var.
(hi-lock--unused-faces): New var to replace it.
(hi-lock-read-face-name): Use/maintain it.
(hi-lock-unface-buffer): Maintain it.  Fix error for the C-u case.
(hi-lock-set-pattern): Ignore new rule if it has the same regexp even
if it has another face.

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