* lisp/hi-lock.el: Rework the default face and the serialize regexp code.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 6 Dec 2012 16:17:11 +0000 (11:17 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 6 Dec 2012 16:17:11 +0000 (11:17 -0500)
commit853c1ffc037f4adc402bea59e3beb03860e63ff7
treebc873047e39de03566dbf8a2bef474c9645a9ea5
parent1700db3c71ec3fde2e263b3325a5b5f5315a4ef9
* lisp/hi-lock.el: Rework the default face and the serialize regexp code.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock-string-serialize-serial): Remove.
(hi-lock--hashcons-hash): Rename from hi-lock-string-serialize-hash;
make weak.
(hi-lock--hashcons): Rename from hi-lock-string-serialize, return an
equal string.
(hi-lock-set-pattern): Adjust accordingly.
(hi-lock--regexps-at-point): Simplify accordingly.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock--last-face): New var to replace it.
(hi-lock-read-face-name): Rewrite.
(hi-lock-unface-buffer): Arrange for the face to be the next default.

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