Function: eval

eval is a function defined in eval.c.

Signature

(eval FORM &optional LEXICAL)

Documentation

Evaluate FORM and return its value.

If LEXICAL is t, evaluate using lexical scoping. LEXICAL can also be an actual lexical environment, in the form of an alist mapping symbols to their value.

View in manual

Probably introduced at or before Emacs version 15.

Aliases

id-tool-quit

Source Code

// Defined in /usr/src/emacs/src/eval.c
{
  specpdl_ref count = SPECPDL_INDEX ();
  specbind (Qinternal_interpreter_environment,
	    CONSP (lexical) || NILP (lexical) ? lexical : list1 (Qt));
  return unbind_to (count, eval_sub (form));
}