Function: prog2
prog2 is a macro defined in subr.el.gz.
Signature
(prog2 FORM1 FORM2 &rest BODY)
Documentation
Eval FORM1, FORM2 and BODY sequentially; return value from FORM2.
The value of FORM2 is saved during the evaluation of the remaining args, whose values are discarded.
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defmacro prog2 (form1 form2 &rest body)
"Eval FORM1, FORM2 and BODY sequentially; return value from FORM2.
The value of FORM2 is saved during the evaluation of the
remaining args, whose values are discarded."
(declare (indent 2) (debug t))
`(progn ,form1 (prog1 ,form2 ,@body)))