aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-03-26 15:25:34 +0000
committerStefan Monnier2004-03-26 15:25:34 +0000
commite64dbd8bb13c9a5a79a435987962f9c973b465ee (patch)
tree03404d920924b756b46576790dabe9495dce26a9
parentd5aacb4655c06850d35697ccdf2ec71d7d7ae632 (diff)
downloademacs-e64dbd8bb13c9a5a79a435987962f9c973b465ee.tar.gz
emacs-e64dbd8bb13c9a5a79a435987962f9c973b465ee.zip
(bs-buffer-list): Use buffer-local-value.
(bs--set-toggle-to-show): Use with-current-buffer.
-rw-r--r--lisp/bs.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/bs.el b/lisp/bs.el
index 9fdc8922cc2..29258119974 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -1,6 +1,6 @@
1;;; bs.el --- menu for selecting and displaying buffers 1;;; bs.el --- menu for selecting and displaying buffers
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. 3;; Copyright (C) 1998, 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
4;; Author: Olaf Sylvester <Olaf.Sylvester@netsurf.de> 4;; Author: Olaf Sylvester <Olaf.Sylvester@netsurf.de>
5;; Maintainer: Olaf Sylvester <Olaf.Sylvester@netsurf.de> 5;; Maintainer: Olaf Sylvester <Olaf.Sylvester@netsurf.de>
6;; Keywords: convenience 6;; Keywords: convenience
@@ -546,9 +546,7 @@ a special function. SORT-DESCRIPTION is an element of `bs-sort-functions'."
546 (extern-must-show-from-fun (and bs-must-show-function 546 (extern-must-show-from-fun (and bs-must-show-function
547 (funcall bs-must-show-function 547 (funcall bs-must-show-function
548 (car list)))) 548 (car list))))
549 (show-flag (save-excursion 549 (show-flag (buffer-local-value 'bs-buffer-show-mark (car list))))
550 (set-buffer (car list))
551 bs-buffer-show-mark)))
552 (if (or (eq show-flag 'always) 550 (if (or (eq show-flag 'always)
553 (and (or bs--show-all (not (eq show-flag 'never))) 551 (and (or bs--show-all (not (eq show-flag 'never)))
554 (not int-show-never) 552 (not int-show-never)
@@ -865,9 +863,7 @@ always. Otherwise it is marked to show never."
865 "Set value `bs-buffer-show-mark' of buffer BUFFER to WHAT. 863 "Set value `bs-buffer-show-mark' of buffer BUFFER to WHAT.
866Redisplay current line and display a message describing 864Redisplay current line and display a message describing
867the status of buffer on current line." 865the status of buffer on current line."
868 (save-excursion 866 (with-current-buffer buffer (setq bs-buffer-show-mark what))
869 (set-buffer buffer)
870 (setq bs-buffer-show-mark what))
871 (bs--update-current-line) 867 (bs--update-current-line)
872 (bs--set-window-height) 868 (bs--set-window-height)
873 (bs--show-config-message what)) 869 (bs--show-config-message what))