1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

* lisp/hi-lock.el (hi-lock-mode): Cleanup after revert-buffer.

Fixes: debbugs:13891
This commit is contained in:
Stefan Monnier 2013-03-31 09:34:35 -04:00
parent df8abd0be8
commit 2bd8a4a867
2 changed files with 7 additions and 1 deletions

View file

@ -389,7 +389,9 @@ versions before 22 use the following in your init file:
(define-key-after menu-bar-edit-menu [hi-lock]
(cons "Regexp Highlighting" hi-lock-menu))
(hi-lock-find-patterns)
(add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook nil t))
(add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook nil t)
;; Remove regexps from font-lock-keywords (bug#13891).
(add-hook 'change-major-mode-hook (lambda () (hi-lock-mode -1)) nil t))
;; Turned off.
(when (or hi-lock-interactive-patterns
hi-lock-file-patterns)