changeset 105580:49a18cece067

* bs.el (bs-mode): Fix last change. (`revert-buffer-function' should be automatically buffer-local, but isn't.)
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 13 Oct 2009 01:13:08 +0000
parents f846b59ab251
children a72293bb4ac8
files lisp/ChangeLog lisp/bs.el
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Oct 13 01:05:18 2009 +0000
+++ b/lisp/ChangeLog	Tue Oct 13 01:13:08 2009 +0000
@@ -1,3 +1,8 @@
+2009-10-13  Juanma Barranquero  <lekktu@gmail.com>
+
+	* bs.el (bs-mode): Fix last change.  (`revert-buffer-function'
+	should be automatically buffer-local, but isn't.)
+
 2009-10-12  Sam Steingold  <sds@gnu.org>
 
 	* progmodes/compile.el (compilation-next-error-function): Fix the
--- a/lisp/bs.el	Tue Oct 13 01:05:18 2009 +0000
+++ b/lisp/bs.el	Tue Oct 13 01:13:08 2009 +0000
@@ -664,8 +664,8 @@
 	show-trailing-whitespace nil
 	font-lock-global-modes '(not bs-mode)
 	font-lock-defaults '(bs-mode-font-lock-keywords t)
-	font-lock-verbose nil
-	revert-buffer-function 'bs-refresh)
+	font-lock-verbose nil)
+  (set (make-local-variable 'revert-buffer-function) 'bs-refresh)
   (add-hook 'window-size-change-functions 'bs--track-window-changes)
   (add-hook 'kill-buffer-hook 'bs--remove-hooks nil t)
   (add-hook 'change-major-mode-hook 'bs--remove-hooks nil t))