]> git.eshelyaron.com Git - emacs.git/commit
Drop face from hi-lock--unused-faces only when used
authorTino Calancha <tino.calancha@gmail.com>
Thu, 27 Apr 2017 03:01:19 +0000 (12:01 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 27 Apr 2017 03:01:19 +0000 (12:01 +0900)
commit9af2ecc36d1d15bb63fb6b28a9b5baa6990f79b8
tree0ebd547d5aa6cc21b7afa6098e1565ecd834ec9f
parent2058ed65fba79ecdbda6604683540bf9f9860bae
Drop face from hi-lock--unused-faces only when used

* lisp/hi-lock.el (hi-lock-set-pattern): If REGEXP is already
highlighted, then push FACE into hi-lock--unused-faces (Bug#26666).
* test/lisp/hi-lock-tests.el (hi-lock-bug26666): Add test.
lisp/hi-lock.el
test/lisp/hi-lock-tests.el [new file with mode: 0644]