* bs.el (bs-mode): Fix last change. (`revert-buffer-function'

should be automatically buffer-local, but isn't.)
This commit is contained in:
Juanma Barranquero 2009-10-13 01:13:08 +00:00
parent bf85638240
commit 1e7a80f247
2 changed files with 7 additions and 2 deletions

View 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))