Function: bs-next-buffer
bs-next-buffer is a byte-compiled function defined in bs.el.gz.
Signature
(bs-next-buffer &optional BUFFER-LIST SORTING-P)
Documentation
Return next buffer and buffer list for buffer cycling in BUFFER-LIST.
Ignore sorting when SORTING-P is nil.
If BUFFER-LIST is nil the result of bs-buffer-list will be used as
buffer list. The result is a cons of normally the second element of
BUFFER-LIST and the buffer list used for buffer cycling.
Source Code
;; Defined in /usr/src/emacs/lisp/bs.el.gz
(defun bs-next-buffer (&optional buffer-list sorting-p)
"Return next buffer and buffer list for buffer cycling in BUFFER-LIST.
Ignore sorting when SORTING-P is nil.
If BUFFER-LIST is nil the result of `bs-buffer-list' will be used as
buffer list. The result is a cons of normally the second element of
BUFFER-LIST and the buffer list used for buffer cycling."
(let* ((bs--current-sort-function (if sorting-p
bs--current-sort-function))
(bs-buffer-list (or buffer-list (bs-buffer-list))))
(cons (or (car (cdr bs-buffer-list))
(car bs-buffer-list)
(current-buffer))
bs-buffer-list)))