Function: find-buffer

find-buffer is a byte-compiled function defined in compat-30.el.

Signature

(find-buffer VARIABLE VALUE)

Documentation

[Compatibility function for find-buffer, defined in Emacs 30.1. See (compat)
Emacs 30.1' for more details.]

Return the buffer with buffer-local VARIABLE equal to VALUE. If there is no such live buffer, return nil.

Source Code

;; Defined in ~/.emacs.d/elpa/compat-30.1.0.1/compat-30.el
;;;; Defined in buffer.c

(compat-defun find-buffer (variable value) ;; <compat-tests:find-buffer>
  "Return the buffer with buffer-local VARIABLE equal to VALUE.
If there is no such live buffer, return nil."
  (cl-loop for buffer the buffers
           if (equal (buffer-local-value variable buffer) value)
           return buffer))