summaryrefslogtreecommitdiff
path: root/lisp/bs.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2009-10-12 04:57:46 +0000
committerJuanma Barranquero <lekktu@gmail.com>2009-10-12 04:57:46 +0000
commitfa72d07524d48892dfd924224dbdc03eed6fcc41 (patch)
treedbb8f9be9b660d155df65ed9bd74af36dd3cf555 /lisp/bs.el
parent3b56b1e695ac20f185d2e4b7add9f680780b145a (diff)
downloademacs-fa72d07524d48892dfd924224dbdc03eed6fcc41.tar.gz
* bs.el (bs-mode): Set `revert-buffer-function' to `bs-refresh'.
(bs-refresh): Add IGNORED arg for `revert-buffer' compatibility. Doc fix.
Diffstat (limited to 'lisp/bs.el')
-rw-r--r--lisp/bs.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/bs.el b/lisp/bs.el
index 54924196bf0..e7febbdb119 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -664,7 +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)
+ font-lock-verbose nil
+ 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))
@@ -697,8 +698,9 @@ Refresh whole Buffer Selection Menu."
(call-interactively 'bs-set-configuration)
(bs--redisplay t))
-(defun bs-refresh ()
- "Refresh whole Buffer Selection Menu."
+(defun bs-refresh (&rest ignored)
+ "Refresh whole Buffer Selection Menu.
+Arguments are IGNORED (for `revert-buffer')."
(interactive)
(bs--redisplay t))