Function: pp
pp is an autoloaded and byte-compiled function defined in pp.el.gz.
Signature
(pp OBJECT &optional STREAM)
Documentation
Output the pretty-printed representation of OBJECT, any Lisp object.
Quoting characters are printed as needed to make output that read
can handle, whenever this is possible.
This function does not apply special formatting rules for Emacs
Lisp code. See pp-emacs-lisp-code instead.
By default, this function won't limit the line length of lists
and vectors. Bind pp-use-max-width to a non-nil value to do so.
Output stream is STREAM, or value of standard-output (which see).
Probably introduced at or before Emacs version 19.20.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/pp.el.gz
;;;###autoload
(defun pp (object &optional stream)
"Output the pretty-printed representation of OBJECT, any Lisp object.
Quoting characters are printed as needed to make output that `read'
can handle, whenever this is possible.
This function does not apply special formatting rules for Emacs
Lisp code. See `pp-emacs-lisp-code' instead.
By default, this function won't limit the line length of lists
and vectors. Bind `pp-use-max-width' to a non-nil value to do so.
Output stream is STREAM, or value of `standard-output' (which see)."
(princ (pp-to-string object) (or stream standard-output)))