Fix hi-lock test and add new test for case-fold (bug#40337)
authorJuri Linkov <juri@linkov.net>
Sun, 12 Apr 2020 23:40:56 +0000 (02:40 +0300)
committerJuri Linkov <juri@linkov.net>
Sun, 12 Apr 2020 23:40:56 +0000 (02:40 +0300)
commit91e4acf7c736dfdb2673dc33c9303b5284e925df
treee72ce8d84512ee75701424fdac26560c94ee88f7
parent68ffe4a3c9a001db528b057109d11de71471e4ff
Fix hi-lock test and add new test for case-fold (bug#40337)

* lisp/hi-lock.el (hi-lock--regexps-at-point): Handle font-lock faces.
(hi-lock-unface-buffer): Simplify default value handling.
(hi-lock-set-pattern): Add either lighter or regexp to
hi-lock-interactive-lighters.
(hi-lock-set-pattern): Put overlay prop hi-lock-overlay-regexp to
either lighter or regexp.

* test/lisp/hi-lock-tests.el (hi-lock-bug26666): Use "b" instead of "a".
(hi-lock-case-fold): New test.
etc/NEWS
lisp/hi-lock.el
test/lisp/hi-lock-tests.el