Next: , Previous: , Up: Interactive Evaluation and Executing Lisp Expressions   [Index]


F.1.6.5 Emacs Lisp Mode

Major mode for editing Lisp code and Lisp source files to run in Emacs.

emacs-lisp-mode

mode command

eval-defun

C-M-x

Evaluate the top-level form containing point, or after point. If the current defun is actually a call to ‘defvar’ or ‘defcustom’, evaluating it this way resets the variable using its initial value expression This command arranges for all errors to enter the debugger.

With a prefix argument, instrument the code for Edebug.

eval-expression

M-:

Evaluate EXP and print value in the echo area. When called interactively, read an Emacs Lisp expression and evaluate it.

eval-last-sexp

C-x C-e

Evaluate sexp before point print value in the echo area. Interactively, with a non ‘-’ prefix argument, print output into current buffer.

eval-region’ and ‘eval-buffer

The command ‘M-x eval-region’ parses the text of the region as one or more Lisp expressions, evaluating them one by one. ‘M-x eval-buffer’ is similar but evaluates the entire buffer.

Parent mode is Lisp Data Mode.