]> git.eshelyaron.com Git - emacs.git/commit
Keep face available if there are no matches
authorTino Calancha <tino.calancha@gmail.com>
Thu, 24 Aug 2017 15:00:20 +0000 (00:00 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 24 Aug 2017 15:09:50 +0000 (00:09 +0900)
commit303481b4ecd7d422653263389f86c83b4a4c855b
treeffebda89bb8f5cb6379a803073224c536eb816aa
parent0332a0ef2bbe6954f080cb6c9d3f0cc2517a1ab1
Keep face available if there are no matches

If font-lock-mode is disabled in the current buffer, and
there are no matches for REGEXP, then keep FACE available
for a next search.
* lisp/hi-lock.el (hi-lock-set-pattern): Add FACE into
hi-lock--unused-faces if font-lock-mode is disabled and
there are no matches.
* test/lisp/hi-lock-tests.el (hi-lock-test-set-pattern): Add test.
lisp/hi-lock.el
test/lisp/hi-lock-tests.el