From: Juanma Barranquero Date: Tue, 13 Oct 2009 01:13:08 +0000 (+0000) Subject: * bs.el (bs-mode): Fix last change. (`revert-buffer-function' X-Git-Tag: emacs-pretest-23.1.90~821 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e7a80f247991145dcfc2fcac59b484e22aee87c;p=emacs.git * bs.el (bs-mode): Fix last change. (`revert-buffer-function' should be automatically buffer-local, but isn't.) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 58975e14f44..380d9a5bd4b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-10-13 Juanma Barranquero + + * bs.el (bs-mode): Fix last change. (`revert-buffer-function' + should be automatically buffer-local, but isn't.) + 2009-10-12 Sam Steingold * progmodes/compile.el (compilation-next-error-function): Fix the diff --git a/lisp/bs.el b/lisp/bs.el index e7febbdb119..c3b1efa08d3 100644 --- a/lisp/bs.el +++ b/lisp/bs.el @@ -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))