Function: pp-macroexpand-last-sexp

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

Signature

(pp-macroexpand-last-sexp ARG)

Documentation

Run pp-macroexpand-expression on sexp before point.

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

Probably introduced at or before Emacs version 23.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/pp.el.gz
;;;###autoload
(defun pp-macroexpand-last-sexp (arg)
  "Run `pp-macroexpand-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 (macroexpand-1 (pp-last-sexp))))
    (pp-macroexpand-expression (pp-last-sexp))))