1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -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

@ -1,3 +1,7 @@
2013-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
* hi-lock.el (hi-lock-mode): Cleanup after revert-buffer (bug#13891).
2013-03-30 Fabián Ezequiel Gallina <fabian@anue.biz>
Un-indent after "pass" and "return" statements (Bug#13888)

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)