buffer-local-value

buffer-local-value is a built-in function in `C source code'.

(buffer-local-value VARIABLE BUFFER)

Return the value of VARIABLE in BUFFER.
If VARIABLE does not have a buffer-local binding in BUFFER, the value
is the default binding of the variable.