• Tino Calancha's avatar
    Keep face available if there are no matches · 303481b4
    Tino Calancha authored
    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.
    303481b4
hi-lock-tests.el 1.92 KB