Function: bs--get-marked-string
bs--get-marked-string is a byte-compiled function defined in bs.el.gz.
Signature
(bs--get-marked-string START-BUFFER ALL-BUFFERS)
Documentation
Return a string which describes whether current buffer is marked.
START-BUFFER is the buffer where we started buffer selection.
ALL-BUFFERS is the list of buffers appearing in Buffer Selection Menu.
The result string is one of bs-string-current, bs-string-current-marked,
bs-string-marked, bs-string-show-normally, bs-string-show-never, or
bs-string-show-always.
Source Code
;; Defined in /usr/src/emacs/lisp/bs.el.gz
(defun bs--get-marked-string (start-buffer _all-buffers)
"Return a string which describes whether current buffer is marked.
START-BUFFER is the buffer where we started buffer selection.
ALL-BUFFERS is the list of buffers appearing in Buffer Selection Menu.
The result string is one of `bs-string-current', `bs-string-current-marked',
`bs-string-marked', `bs-string-show-normally', `bs-string-show-never', or
`bs-string-show-always'."
(cond ;; current buffer is the buffer we started buffer selection.
((eq (current-buffer) start-buffer)
(if (memq (current-buffer) bs--marked-buffers)
bs-string-current-marked ; buffer is marked
bs-string-current))
;; current buffer is marked
((memq (current-buffer) bs--marked-buffers)
bs-string-marked)
;; current buffer hasn't a special mark.
((null bs-buffer-show-mark)
bs-string-show-normally)
;; current buffer has a mark not to show itself.
((eq bs-buffer-show-mark 'never)
bs-string-show-never)
;; otherwise current buffer is marked to show always.
(t
bs-string-show-always)))