aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2013-03-31 09:34:35 -0400
committerStefan Monnier2013-03-31 09:34:35 -0400
commit2bd8a4a8675b92b9dfed0a145493abb48e048d2d (patch)
treea9dd613e73a37c3b33f713f3501a014b1ff38ec3
parentdf8abd0be836a5441c5ccd4ebf1a90937ea354d9 (diff)
downloademacs-2bd8a4a8675b92b9dfed0a145493abb48e048d2d.tar.gz
emacs-2bd8a4a8675b92b9dfed0a145493abb48e048d2d.zip
* lisp/hi-lock.el (hi-lock-mode): Cleanup after revert-buffer.
Fixes: debbugs:13891
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/hi-lock.el4
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ced7672ef99..9a471252797 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * hi-lock.el (hi-lock-mode): Cleanup after revert-buffer (bug#13891).
4
12013-03-30 Fabián Ezequiel Gallina <fabian@anue.biz> 52013-03-30 Fabián Ezequiel Gallina <fabian@anue.biz>
2 6
3 Un-indent after "pass" and "return" statements (Bug#13888) 7 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:
389 (define-key-after menu-bar-edit-menu [hi-lock] 389 (define-key-after menu-bar-edit-menu [hi-lock]
390 (cons "Regexp Highlighting" hi-lock-menu)) 390 (cons "Regexp Highlighting" hi-lock-menu))
391 (hi-lock-find-patterns) 391 (hi-lock-find-patterns)
392 (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook nil t)) 392 (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook nil t)
393 ;; Remove regexps from font-lock-keywords (bug#13891).
394 (add-hook 'change-major-mode-hook (lambda () (hi-lock-mode -1)) nil t))
393 ;; Turned off. 395 ;; Turned off.
394 (when (or hi-lock-interactive-patterns 396 (when (or hi-lock-interactive-patterns
395 hi-lock-file-patterns) 397 hi-lock-file-patterns)