From: Stefan Monnier Date: Sun, 31 Mar 2013 13:34:35 +0000 (-0400) Subject: * lisp/hi-lock.el (hi-lock-mode): Cleanup after revert-buffer. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~526^2~27 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2bd8a4a8675b92b9dfed0a145493abb48e048d2d;p=emacs.git * lisp/hi-lock.el (hi-lock-mode): Cleanup after revert-buffer. Fixes: debbugs:13891 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ced7672ef99..9a471252797 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2013-03-31 Stefan Monnier + + * hi-lock.el (hi-lock-mode): Cleanup after revert-buffer (bug#13891). + 2013-03-30 Fabián Ezequiel Gallina Un-indent after "pass" and "return" statements (Bug#13888) diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 38e5e8acb15..e2dc4eac67b 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -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)