Function: symbol-value
symbol-value is a function defined in data.c.
Signature
(symbol-value SYMBOL)
Documentation
Return SYMBOL's value. Error if that is void.
Note that if lexical-binding is in effect, this returns the
global value outside of any lexical scope.
Source Code
// Defined in /usr/src/emacs/src/data.c
{
Lisp_Object val;
val = find_symbol_value (symbol);
if (!BASE_EQ (val, Qunbound))
return val;
xsignal1 (Qvoid_variable, symbol);
}