Function: magit--find-buffer

magit--find-buffer is a natively compiled function defined in magit-base.el.

Signature

(magit--find-buffer &rest PLIST)

Documentation

Like find-buffer but take multiple VARIABLE-VALUE pairs.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-base.el
(defun magit--find-buffer (&rest plist)
  "Like `find-buffer' but take multiple VARIABLE-VALUE pairs."
  (seq-find (lambda (buf)
              (let ((plist plist))
                (while (and plist
                            (equal (buffer-local-value (car plist) buf)
                                   (cadr plist)))
                  (setq plist (cddr plist)))
                (not plist)))
            (buffer-list)))