Function: bs-previous-buffer
bs-previous-buffer is a byte-compiled function defined in bs.el.gz.
Signature
(bs-previous-buffer &optional BUFFER-LIST SORTING-P)
Documentation
Return previous 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 last 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-previous-buffer (&optional buffer-list sorting-p)
"Return previous 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 last 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 (last bs-buffer-list))
(current-buffer))
bs-buffer-list)))