Function: cape--buffer-list
cape--buffer-list is a natively compiled function defined in cape.el.
Signature
(cape--buffer-list PRED)
Documentation
Return list of buffers satisfying PRED.
Source Code
;; Defined in /nix/store/nxaggkd0bn9kr2xfg9hyw77q51q20r8y-emacs-packages-deps/share/emacs/site-lisp/elpa/cape-20260927.2347/cape.el
;;;; Helpers
(defun cape--buffer-list (pred)
"Return list of buffers satisfying PRED."
(let* ((cur (current-buffer))
(orig (and (minibufferp) (window-buffer (minibuffer-selected-window))))
(list (cl-loop for buf in (buffer-list)
if (and (not (eq buf cur)) (not (eq buf orig))
(funcall pred buf))
collect buf)))
`(,cur ,@(and orig (list orig)) ,@list)))