]> git.eshelyaron.com Git - emacs.git/commitdiff
* bs.el (bs-mode): Fix last change. (`revert-buffer-function'
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 13 Oct 2009 01:13:08 +0000 (01:13 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 13 Oct 2009 01:13:08 +0000 (01:13 +0000)
  should be automatically buffer-local, but isn't.)

lisp/ChangeLog
lisp/bs.el

index 58975e14f44aeb7111584865a989634fa564ac1b..380d9a5bd4b2467a796f73de9e9fd0e6f8fe0c2b 100644 (file)
@@ -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
index e7febbdb11969eaf83998e8f33ece7c878c39404..c3b1efa08d34d3044078a7f8aa79488a326532a5 100644 (file)
@@ -664,8 +664,8 @@ to show always.
        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))