Function: local-variable-p

Non-nil if VARIABLE has a local binding in buffer BUFFER.
BUFFER defaults to the current buffer.

(fn VARIABLE &optional BUFFER)