comparison lisp/bs.el @ 73642:d4b7bfddf3f5

(bs--show-all, bs--redisplay): Use "non-nil" in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 03 Nov 2006 15:05:44 +0000
parents 526bb84288e1
children c089b114a8ec 02cf29720f31
comparison
equal deleted inserted replaced
73641:1b10fc956ff0 73642:d4b7bfddf3f5
439 (defvar bs--buffer-coming-from nil 439 (defvar bs--buffer-coming-from nil
440 "The buffer in which the user started the current Buffer Selection Menu.") 440 "The buffer in which the user started the current Buffer Selection Menu.")
441 441
442 (defvar bs--show-all nil 442 (defvar bs--show-all nil
443 "Flag whether showing all buffers regardless of current configuration. 443 "Flag whether showing all buffers regardless of current configuration.
444 Non nil means to show all buffers. Otherwise show buffers 444 Non-nil means to show all buffers. Otherwise show buffers
445 defined by current configuration `bs-current-configuration'.") 445 defined by current configuration `bs-current-configuration'.")
446 446
447 (defvar bs--window-config-coming-from nil 447 (defvar bs--window-config-coming-from nil
448 "Window configuration before starting Buffer Selection Menu.") 448 "Window configuration before starting Buffer Selection Menu.")
449 449
581 (sort buffer-list bs-buffer-sort-function) 581 (sort buffer-list bs-buffer-sort-function)
582 buffer-list)) 582 buffer-list))
583 583
584 (defun bs--redisplay (&optional keep-line-p sort-description) 584 (defun bs--redisplay (&optional keep-line-p sort-description)
585 "Redisplay whole Buffer Selection Menu. 585 "Redisplay whole Buffer Selection Menu.
586 If KEEP-LINE-P is non nil the point will stay on current line. 586 If KEEP-LINE-P is non-nil the point will stay on current line.
587 SORT-DESCRIPTION is an element of `bs-sort-functions'" 587 SORT-DESCRIPTION is an element of `bs-sort-functions'"
588 (let ((line (1+ (count-lines 1 (point))))) 588 (let ((line (1+ (count-lines 1 (point)))))
589 (bs-show-in-buffer (bs-buffer-list nil sort-description)) 589 (bs-show-in-buffer (bs-buffer-list nil sort-description))
590 (if keep-line-p 590 (if keep-line-p
591 (goto-line line)) 591 (goto-line line))