Function: pp-eval-last-sexp

pp-eval-last-sexp is an autoloaded, interactive and byte-compiled function defined in pp.el.gz.

Signature

(pp-eval-last-sexp ARG)

Documentation

Run pp-eval-expression on sexp before point.

With ARG, pretty-print output into current buffer. Ignores leading comment characters.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/pp.el.gz
;;;###autoload
(defun pp-eval-last-sexp (arg)
  "Run `pp-eval-expression' on sexp before point.
With ARG, pretty-print output into current buffer.
Ignores leading comment characters."
  (interactive "P")
  (if arg
      (insert (pp-to-string (eval (elisp--eval-defun-1
                                   (macroexpand (pp-last-sexp)))
                                  lexical-binding)))
    (pp-eval-expression (elisp--eval-defun-1
                         (macroexpand (pp-last-sexp))))))