aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-11-28 10:08:36 +0000
committerGerd Moellmann2000-11-28 10:08:36 +0000
commitae4bf56d61d420a0e674ff17a70421a5ca5376fb (patch)
tree1fd176cdad20ca7ff1d361e8db0e8280f9a32135
parent83d544cb791bd7ea3c6114ca67c59235ad62b94d (diff)
downloademacs-ae4bf56d61d420a0e674ff17a70421a5ca5376fb.tar.gz
emacs-ae4bf56d61d420a0e674ff17a70421a5ca5376fb.zip
Update from author.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/bs.el92
2 files changed, 48 insertions, 48 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a47232a3e8a..90dcbc156df 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12000-11-28 Gerd Moellmann <gerd@gnu.org>
2
3 * bs.el: Update from author.
4
12000-11-28 Colin Walters <walters@cis.ohio-state.edu> 52000-11-28 Colin Walters <walters@cis.ohio-state.edu>
2 6
3 * chistory.el (Command-history-setup): Remove extraneous `keymap' 7 * chistory.el (Command-history-setup): Remove extraneous `keymap'
diff --git a/lisp/bs.el b/lisp/bs.el
index 613b5ba98b9..4b0c80ba9e9 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 Free Software Foundation, Inc. 3;; Copyright (C) 1998, 1999, 2000 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
@@ -65,7 +65,7 @@
65;; The package bs combines the advantages of the Emacs functions 65;; The package bs combines the advantages of the Emacs functions
66;; `list-buffers' and `electric-buffer-list'. 66;; `list-buffers' and `electric-buffer-list'.
67;; 67;;
68;; Additioal features for Buffer Selection Menu: 68;; Additional features for Buffer Selection Menu:
69;; - configurable list of buffers (show only files etc.). 69;; - configurable list of buffers (show only files etc.).
70;; - comfortable way to change displayed subset of all buffers. 70;; - comfortable way to change displayed subset of all buffers.
71;; - show sorted list of buffers. 71;; - show sorted list of buffers.
@@ -141,8 +141,8 @@
141 :link '(url-link "http://home.netsurf.de/olaf.sylvester/emacs") 141 :link '(url-link "http://home.netsurf.de/olaf.sylvester/emacs")
142 :group 'convenience) 142 :group 'convenience)
143 143
144(defgroup bs-appearence nil 144(defgroup bs-appearance nil
145 "Buffer Selection appearence: Appearence of bs buffer menu." 145 "Buffer Selection appearance: Appearance of bs buffer menu."
146 :group 'bs) 146 :group 'bs)
147 147
148(defcustom bs-attributes-list 148(defcustom bs-attributes-list
@@ -169,20 +169,19 @@ MAXIMUM-LENGTH : maximum width of column (number or name of function)
169ALIGNMENT : alignment of column: (`left' `right' `middle') 169ALIGNMENT : alignment of column: (`left' `right' `middle')
170FUN-OR-STRING : Name of a function for calculating the value or 170FUN-OR-STRING : Name of a function for calculating the value or
171a string for a constant value. 171a string for a constant value.
172The function gets as parameter the buffer we have started 172The function gets as parameter the buffer where we have started
173buffer selection and the list of all buffers to show. The function must 173buffer selection and the list of all buffers to show. The function must
174return a string representing the columns value." 174return a string representing the column's value."
175 :group 'bs-appearence 175 :group 'bs-appearance
176 :type '(repeat sexp)) 176 :type '(repeat sexp))
177 177
178(defvar bs--running-in-xemacs (string-match "XEmacs" (emacs-version)) 178(defvar bs--running-in-xemacs (string-match "XEmacs" (emacs-version))
179 "Non-nil when running under XEmacs.") 179 "Non-nil when running under XEmacs.")
180 180
181
182(defun bs--make-header-match-string () 181(defun bs--make-header-match-string ()
183 "Return a regexp matching the first line of a Buffer Selection Menu buffer." 182 "Return a regexp matching the first line of a Buffer Selection Menu buffer."
184 (let ((res "^\\(") 183 (let ((res "^\\(")
185 (ele bs-attributes-list)) 184 (ele bs-attributes-list))
186 (while ele 185 (while ele
187 (setq res (concat res (car (car ele)) " *")) 186 (setq res (concat res (car (car ele)) " *"))
188 (setq ele (cdr ele))) 187 (setq ele (cdr ele)))
@@ -190,7 +189,7 @@ return a string representing the columns value."
190 189
191;;; Font-Lock-Settings 190;;; Font-Lock-Settings
192(defvar bs-mode-font-lock-keywords 191(defvar bs-mode-font-lock-keywords
193 (list;; header in font-lock-type-face 192 (list ;; header in font-lock-type-face
194 (list (bs--make-header-match-string) 193 (list (bs--make-header-match-string)
195 '(1 font-lock-type-face append) '(1 'bold append)) 194 '(1 font-lock-type-face append) '(1 'bold append))
196 ;; Buffername embedded by * 195 ;; Buffername embedded by *
@@ -208,7 +207,7 @@ return a string representing the columns value."
208 207
209(defcustom bs-max-window-height 20 208(defcustom bs-max-window-height 20
210 "*Maximal window height of Buffer Selection Menu." 209 "*Maximal window height of Buffer Selection Menu."
211 :group 'bs-appearence 210 :group 'bs-appearance
212 :type 'integer) 211 :type 'integer)
213 212
214(defvar bs-dont-show-regexp nil 213(defvar bs-dont-show-regexp nil
@@ -243,7 +242,7 @@ The function gets one argument - the buffer to test.")
243 242
244(defvar bs-buffer-sort-function nil 243(defvar bs-buffer-sort-function nil
245 "Sort function to sort the buffers that appear in Buffer Selection Menu. 244 "Sort function to sort the buffers that appear in Buffer Selection Menu.
246The functions gets two arguments - the buffers to compare.") 245The function gets two arguments - the buffers to compare.")
247 246
248(defcustom bs-maximal-buffer-name-column 45 247(defcustom bs-maximal-buffer-name-column 45
249 "*Maximum column width for buffer names. 248 "*Maximum column width for buffer names.
@@ -251,7 +250,7 @@ The column for buffer names has dynamic width. The width depends on
251maximal and minimal length of names of buffers to show. The maximal 250maximal and minimal length of names of buffers to show. The maximal
252width is bounded by `bs-maximal-buffer-name-column'. 251width is bounded by `bs-maximal-buffer-name-column'.
253See also `bs-minimal-buffer-name-column'." 252See also `bs-minimal-buffer-name-column'."
254 :group 'bs-appearence 253 :group 'bs-appearance
255 :type 'integer) 254 :type 'integer)
256 255
257(defcustom bs-minimal-buffer-name-column 15 256(defcustom bs-minimal-buffer-name-column 15
@@ -260,7 +259,7 @@ The column for buffer names has dynamic width. The width depends on
260maximal and minimal length of names of buffers to show. The minimal 259maximal and minimal length of names of buffers to show. The minimal
261width is bounded by `bs-minimal-buffer-name-column'. 260width is bounded by `bs-minimal-buffer-name-column'.
262See also `bs-maximal-buffer-name-column'." 261See also `bs-maximal-buffer-name-column'."
263 :group 'bs-appearence 262 :group 'bs-appearance
264 :type 'integer) 263 :type 'integer)
265 264
266(defconst bs-header-lines-length 2 265(defconst bs-header-lines-length 2
@@ -269,22 +268,22 @@ See also `bs-maximal-buffer-name-column'."
269(defcustom bs-configurations 268(defcustom bs-configurations
270 '(("all" nil nil nil nil nil) 269 '(("all" nil nil nil nil nil)
271 ("files" nil nil nil bs-visits-non-file bs-sort-buffer-interns-are-last) 270 ("files" nil nil nil bs-visits-non-file bs-sort-buffer-interns-are-last)
272 ("files-and-scratch" "^\\*scratch\\*" nil nil bs-visits-non-file 271 ("files-and-scratch" "^\\*scratch\\*$" nil nil bs-visits-non-file
273 bs-sort-buffer-interns-are-last) 272 bs-sort-buffer-interns-are-last)
274 ("all-intern-last" nil nil nil nil bs-sort-buffer-interns-are-last)) 273 ("all-intern-last" nil nil nil nil bs-sort-buffer-interns-are-last))
275 "*List of all configurations you can use in the Buffer Selection Menu. 274 "*List of all configurations you can use in the Buffer Selection Menu.
276A configuration describes which buffers appear in Buffer Selection Menu 275A configuration describes which buffers appear in Buffer Selection Menu
277and describes the order of buffers. A configuration is a list with 276and also the order of buffers. A configuration is a list with
278six elements. The first element is a string and describes the configuration. 277six elements. The first element is a string and describes the configuration.
279The following five elements represent the values for Buffer Selection Menu 278The following five elements represent the values for Buffer Selection Menu
280configurations variables `bs-dont-show-regexp', `bs-dont-show-function', 279configuration variables `bs-must-show-regexp', `bs-must-show-function',
281`bs-must-show-regexp', `bs-must-show-function' and `bs-buffer-sort-function'. 280`bs-dont-show-regexp', `bs-dont-show-function' and `bs-buffer-sort-function'.
282By setting these variables you define a configuration." 281By setting these variables you define a configuration."
283 :group 'bs-appearence 282 :group 'bs-appearance
284 :type '(repeat sexp)) 283 :type '(repeat sexp))
285 284
286(defcustom bs-default-configuration "files" 285(defcustom bs-default-configuration "files"
287 "*Name of default configuration used by in the Buffer Selection Menu. 286 "*Name of default configuration used by the Buffer Selection Menu.
288\\<bs-mode-map> 287\\<bs-mode-map>
289Will be changed using key \\[bs-select-next-configuration]. 288Will be changed using key \\[bs-select-next-configuration].
290Must be a string used in `bs-configurations' for naming a configuration." 289Must be a string used in `bs-configurations' for naming a configuration."
@@ -300,7 +299,7 @@ Must be a string used in `bs-configurations' for naming a configuration."
300 299
301(defvar bs-current-configuration bs-default-configuration 300(defvar bs-current-configuration bs-default-configuration
302 "Name of current configuration. 301 "Name of current configuration.
303Must be a string found in `bs-configurations' for naming a configuration.") 302Must be a string used in `bs-configurations' for naming a configuration.")
304 303
305(defcustom bs-cycle-configuration-name nil 304(defcustom bs-cycle-configuration-name nil
306 "*Name of configuration used when cycling through the buffer list. 305 "*Name of configuration used when cycling through the buffer list.
@@ -312,32 +311,32 @@ Must be a string used in `bs-configurations' for naming a configuration."
312 311
313(defcustom bs-string-show-always "+" 312(defcustom bs-string-show-always "+"
314 "*String added in column 1 indicating a buffer will always be shown." 313 "*String added in column 1 indicating a buffer will always be shown."
315 :group 'bs-appearence 314 :group 'bs-appearance
316 :type 'string) 315 :type 'string)
317 316
318(defcustom bs-string-show-never "-" 317(defcustom bs-string-show-never "-"
319 "*String added in column 1 indicating a buffer will never be shown." 318 "*String added in column 1 indicating a buffer will never be shown."
320 :group 'bs-appearence 319 :group 'bs-appearance
321 :type 'string) 320 :type 'string)
322 321
323(defcustom bs-string-current "." 322(defcustom bs-string-current "."
324 "*String added in column 1 indicating the current buffer." 323 "*String added in column 1 indicating the current buffer."
325 :group 'bs-appearence 324 :group 'bs-appearance
326 :type 'string) 325 :type 'string)
327 326
328(defcustom bs-string-current-marked "#" 327(defcustom bs-string-current-marked "#"
329 "*String added in column 1 indicating the current buffer when it is marked." 328 "*String added in column 1 indicating the current buffer when it is marked."
330 :group 'bs-appearence 329 :group 'bs-appearance
331 :type 'string) 330 :type 'string)
332 331
333(defcustom bs-string-marked ">" 332(defcustom bs-string-marked ">"
334 "*String added in column 1 indicating a marked buffer." 333 "*String added in column 1 indicating a marked buffer."
335 :group 'bs-appearence 334 :group 'bs-appearance
336 :type 'string) 335 :type 'string)
337 336
338(defcustom bs-string-show-normally " " 337(defcustom bs-string-show-normally " "
339 "*String added in column 1 indicating a unmarked buffer." 338 "*String added in column 1 indicating a unmarked buffer."
340 :group 'bs-appearence 339 :group 'bs-appearance
341 :type 'string) 340 :type 'string)
342 341
343(defvar bs--name-entry-length 20 342(defvar bs--name-entry-length 20
@@ -345,13 +344,13 @@ Must be a string used in `bs-configurations' for naming a configuration."
345Used internally, only.") 344Used internally, only.")
346 345
347;; ---------------------------------------------------------------------- 346;; ----------------------------------------------------------------------
348;; Intern globals 347;; Internal globals
349;; ---------------------------------------------------------------------- 348;; ----------------------------------------------------------------------
350 349
351(defvar bs-buffer-show-mark nil 350(defvar bs-buffer-show-mark nil
352 "Flag for the current mode for showing this buffer. 351 "Flag for the current mode for showing this buffer.
353A value of nil means buffer will be shown depending on the current on 352A value of nil means buffer will be shown depending on the current
354current configuration. 353configuration.
355A value of `never' means to never show the buffer. 354A value of `never' means to never show the buffer.
356A value of `always' means to show buffer regardless of the configuration.") 355A value of `always' means to show buffer regardless of the configuration.")
357 356
@@ -362,7 +361,6 @@ A value of `always' means to show buffer regardless of the configuration.")
362 (make-face 'region) 361 (make-face 'region)
363 (set-face-background 'region "gray75")) 362 (set-face-background 'region "gray75"))
364 363
365
366(defun bs--sort-by-name (b1 b2) 364(defun bs--sort-by-name (b1 b2)
367 "Compare buffers B1 and B2 by buffer name." 365 "Compare buffers B1 and B2 by buffer name."
368 (string< (buffer-name b1) 366 (string< (buffer-name b1)
@@ -528,7 +526,7 @@ Used internally, only.")
528 526
529(defun bs-buffer-list (&optional list sort-description) 527(defun bs-buffer-list (&optional list sort-description)
530 "Return a list of buffers to be shown. 528 "Return a list of buffers to be shown.
531LIST is a list of buffers to test for appearence in Buffer Selection Menu. 529LIST is a list of buffers to test for appearance in Buffer Selection Menu.
532The result list depends on the global variables `bs-dont-show-regexp', 530The result list depends on the global variables `bs-dont-show-regexp',
533`bs-must-show-regexp', `bs-dont-show-function', `bs-must-show-function' 531`bs-must-show-regexp', `bs-dont-show-function', `bs-must-show-function'
534and `bs-buffer-sort-function'. 532and `bs-buffer-sort-function'.
@@ -652,10 +650,10 @@ apply selected configuration.
652\\[bs-select-next-configuration] -- select and apply next \ 650\\[bs-select-next-configuration] -- select and apply next \
653available Buffer Selection Menu configuration. 651available Buffer Selection Menu configuration.
654\\[bs-kill] -- leave Buffer Selection Menu without a selection. 652\\[bs-kill] -- leave Buffer Selection Menu without a selection.
655\\[bs-toggle-current-to-show] -- toggle status of appearence . 653\\[bs-toggle-current-to-show] -- toggle status of appearance.
656\\[bs-set-current-buffer-to-show-always] -- mark current line's buffer \ 654\\[bs-set-current-buffer-to-show-always] -- mark current line's buffer \
657to show always. 655to show always.
658\\[bs-visit-tags-table] -- call `visit-tags-table' on current line'w buffer. 656\\[bs-visit-tags-table] -- call `visit-tags-table' on current line's buffer.
659\\[bs-help] -- display this help text." 657\\[bs-help] -- display this help text."
660 (interactive) 658 (interactive)
661 (kill-all-local-variables) 659 (kill-all-local-variables)
@@ -717,7 +715,7 @@ Return nil if there is no such buffer."
717 715
718(defun bs--current-buffer () 716(defun bs--current-buffer ()
719 "Return buffer on current line. 717 "Return buffer on current line.
720Raise an error if not an a buffer line." 718Raise an error if not on a buffer line."
721 (beginning-of-line) 719 (beginning-of-line)
722 (let ((line (+ (- bs-header-lines-length) 720 (let ((line (+ (- bs-header-lines-length)
723 (count-lines 1 (point))))) 721 (count-lines 1 (point)))))
@@ -984,7 +982,7 @@ Default is `bs--current-sort-function'."
984 982
985(defun bs-toggle-readonly () 983(defun bs-toggle-readonly ()
986 "Toggle read-only status for buffer on current line. 984 "Toggle read-only status for buffer on current line.
987Uses Function `vc-toggle-read-only'." 985Uses function `vc-toggle-read-only'."
988 (interactive) 986 (interactive)
989 (let ((buffer (bs--current-buffer))) 987 (let ((buffer (bs--current-buffer)))
990 (save-excursion 988 (save-excursion
@@ -1049,7 +1047,7 @@ A value of nil means BUFFER belongs to a file."
1049 (not (buffer-file-name buffer))) 1047 (not (buffer-file-name buffer)))
1050 1048
1051(defun bs-sort-buffer-interns-are-last (b1 b2) 1049(defun bs-sort-buffer-interns-are-last (b1 b2)
1052 "Function for sorting intern buffers B1 and B2 at the end of all buffers." 1050 "Function for sorting internal buffers B1 and B2 at the end of all buffers."
1053 (string-match "^\\*" (buffer-name b2))) 1051 (string-match "^\\*" (buffer-name b2)))
1054 1052
1055;; ---------------------------------------------------------------------- 1053;; ----------------------------------------------------------------------
@@ -1070,7 +1068,7 @@ These variables are `bs-dont-show-regexp', `bs-must-show-regexp',
1070(defun bs-config--only-files () 1068(defun bs-config--only-files ()
1071 "Define a configuration for showing only buffers visiting a file." 1069 "Define a configuration for showing only buffers visiting a file."
1072 (bs-config-clear) 1070 (bs-config-clear)
1073 (setq;; I want to see *-buffers at the end 1071 (setq ;; I want to see *-buffers at the end
1074 bs-buffer-sort-function 'bs-sort-buffer-interns-are-last 1072 bs-buffer-sort-function 'bs-sort-buffer-interns-are-last
1075 ;; Don't show files who don't belong to a file 1073 ;; Don't show files who don't belong to a file
1076 bs-dont-show-function 'bs-visits-non-file)) 1074 bs-dont-show-function 'bs-visits-non-file))
@@ -1078,12 +1076,12 @@ These variables are `bs-dont-show-regexp', `bs-must-show-regexp',
1078(defun bs-config--files-and-scratch () 1076(defun bs-config--files-and-scratch ()
1079 "Define a configuration for showing buffer *scratch* and file buffers." 1077 "Define a configuration for showing buffer *scratch* and file buffers."
1080 (bs-config-clear) 1078 (bs-config-clear)
1081 (setq;; I want to see *-buffers at the end 1079 (setq ;; I want to see *-buffers at the end
1082 bs-buffer-sort-function 'bs-sort-buffer-interns-are-last 1080 bs-buffer-sort-function 'bs-sort-buffer-interns-are-last
1083 ;; Don't show files who don't belong to a file 1081 ;; Don't show files who don't belong to a file
1084 bs-dont-show-function 'bs-visits-non-file 1082 bs-dont-show-function 'bs-visits-non-file
1085 ;; Show *scratch* buffer. 1083 ;; Show *scratch* buffer.
1086 bs-must-show-regexp "^\\*scratch\\*")) 1084 bs-must-show-regexp "^\\*scratch\\*$"))
1087 1085
1088(defun bs-config--all () 1086(defun bs-config--all ()
1089 "Define a configuration for showing all buffers. 1087 "Define a configuration for showing all buffers.
@@ -1092,7 +1090,7 @@ Reset all according variables by `bs-config-clear'."
1092 1090
1093(defun bs-config--all-intern-last () 1091(defun bs-config--all-intern-last ()
1094 "Define a configuration for showing all buffers. 1092 "Define a configuration for showing all buffers.
1095Intern buffers appear at end of all buffers." 1093Internal buffers appear at end of all buffers."
1096 (bs-config-clear) 1094 (bs-config-clear)
1097 ;; I want to see *-buffers at the end 1095 ;; I want to see *-buffers at the end
1098 (setq bs-buffer-sort-function 'bs-sort-buffer-interns-are-last)) 1096 (setq bs-buffer-sort-function 'bs-sort-buffer-interns-are-last))
@@ -1154,7 +1152,7 @@ will be used."
1154 (setq bs-default-configuration bs-current-configuration) 1152 (setq bs-default-configuration bs-current-configuration)
1155 (bs--redisplay t) 1153 (bs--redisplay t)
1156 (bs--set-window-height) 1154 (bs--set-window-height)
1157 (bs-message-without-log "Selected config: %s" (car config)))) 1155 (bs-message-without-log "Selected configuration: %s" (car config))))
1158 1156
1159(defun bs-show-in-buffer (list) 1157(defun bs-show-in-buffer (list)
1160 "Display buffer list LIST in buffer *buffer-selection*. 1158 "Display buffer list LIST in buffer *buffer-selection*.
@@ -1219,7 +1217,7 @@ All arguments ARGS are transfered to function `message'."
1219 (apply 'message args))) 1217 (apply 'message args)))
1220 1218
1221(defvar bs--cycle-list nil 1219(defvar bs--cycle-list nil
1222 "Currentyl buffer list used for cycling.") 1220 "Current buffer list used for cycling.")
1223 1221
1224;;;###autoload 1222;;;###autoload
1225(defun bs-cycle-next () 1223(defun bs-cycle-next ()
@@ -1300,7 +1298,7 @@ ALL-BUFFERS is the list of buffer appearing in Buffer Selection Menu.
1300The result string is one of `bs-string-current', `bs-string-current-marked', 1298The result string is one of `bs-string-current', `bs-string-current-marked',
1301`bs-string-marked', `bs-string-show-normally', `bs-string-show-never', or 1299`bs-string-marked', `bs-string-show-normally', `bs-string-show-never', or
1302`bs-string-show-always'." 1300`bs-string-show-always'."
1303 (cond;; current buffer is the buffer we started buffer selection. 1301 (cond ;; current buffer is the buffer we started buffer selection.
1304 ((eq (current-buffer) start-buffer) 1302 ((eq (current-buffer) start-buffer)
1305 (if (memq (current-buffer) bs--marked-buffers) 1303 (if (memq (current-buffer) bs--marked-buffers)
1306 bs-string-current-marked ; buffer is marked 1304 bs-string-current-marked ; buffer is marked
@@ -1349,7 +1347,6 @@ ALL-BUFFERS is the list of buffer appearing in Buffer Selection Menu."
1349 (make-string (- bs--name-entry-length (length name)) ? )) 1347 (make-string (- bs--name-entry-length (length name)) ? ))
1350 name))) 1348 name)))
1351 1349
1352
1353(defun bs--get-mode-name (start-buffer all-buffers) 1350(defun bs--get-mode-name (start-buffer all-buffers)
1354 "Return the name of mode of current buffer for Buffer Selection Menu. 1351 "Return the name of mode of current buffer for Buffer Selection Menu.
1355START-BUFFER is the buffer where we started buffer selection. 1352START-BUFFER is the buffer where we started buffer selection.
@@ -1370,7 +1367,6 @@ ALL-BUFFERS is the list of buffer appearing in Buffer Selection Menu."
1370 (put-text-property 0 (length string) 'mouse-face 'highlight string) 1367 (put-text-property 0 (length string) 'mouse-face 'highlight string)
1371 string)) 1368 string))
1372 1369
1373
1374(defun bs--insert-one-entry (buffer) 1370(defun bs--insert-one-entry (buffer)
1375 "Generate one entry for buffer BUFFER in Buffer Selection Menu. 1371 "Generate one entry for buffer BUFFER in Buffer Selection Menu.
1376It goes over all columns described in `bs-attributes-list' 1372It goes over all columns described in `bs-attributes-list'
@@ -1436,7 +1432,7 @@ ALIGN is one of the symbols `left', `middle', or `right'."
1436 ""))) 1432 "")))
1437 1433
1438(defun bs--show-with-configuration (name &optional arg) 1434(defun bs--show-with-configuration (name &optional arg)
1439 "Display buffer list of configuration with NAME name. 1435 "Display buffer list of configuration with name NAME.
1440Set configuration NAME and determine window for Buffer Selection Menu. 1436Set configuration NAME and determine window for Buffer Selection Menu.
1441Unless current buffer is buffer *buffer-selection* we have to save 1437Unless current buffer is buffer *buffer-selection* we have to save
1442the buffer we started Buffer Selection Menu and the current window 1438the buffer we started Buffer Selection Menu and the current window
@@ -1470,7 +1466,7 @@ for buffer selection."
1470If PREFIX-ARG is nil return `bs-default-configuration'. 1466If PREFIX-ARG is nil return `bs-default-configuration'.
1471If PREFIX-ARG is an integer return PREFIX-ARG element of `bs-configurations'. 1467If PREFIX-ARG is an integer return PREFIX-ARG element of `bs-configurations'.
1472Otherwise return `bs-alternative-configuration'." 1468Otherwise return `bs-alternative-configuration'."
1473 (cond;; usually activation 1469 (cond ;; usually activation
1474 ((null prefix-arg) 1470 ((null prefix-arg)
1475 bs-default-configuration) 1471 bs-default-configuration)
1476 ;; call with integer as prefix argument 1472 ;; call with integer as prefix argument