Function: find-buffer
find-buffer is a function defined in buffer.c.
Signature
(find-buffer VARIABLE VALUE)
Documentation
Return the buffer with buffer-local VARIABLE equal to VALUE.
If there is no such live buffer, return nil.
See also find-buffer-visiting.
Source Code
// Defined in /usr/src/emacs/src/buffer.c
{
register Lisp_Object tail, buf;
FOR_EACH_LIVE_BUFFER (tail, buf)
{
if (!NILP (Fequal (value, Fbuffer_local_value (variable, buf))))
return buf;
}
return Qnil;
}