mode-local-symbol
mode-local-symbol is a compiled Lisp function in `mode-local.el
'.
(mode-local-symbol SYMBOL &optional MODE)
Return the mode local symbol bound with SYMBOL's name.
Return nil if the mode local symbol doesn't exist.
If optional argument MODE is nil, lookup first into locally bound
symbols, then in those bound in current `major-mode' and its parents.
If MODE is non-nil, lookup into symbols bound in that major mode and
its parents.