Function: cl-prettyprint
cl-prettyprint is a byte-compiled function defined in cl-extra.el.gz.
Signature
(cl-prettyprint FORM)
Documentation
Insert a pretty-printed rendition of a Lisp FORM in current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-extra.el.gz
;;; Some debugging aids.
(defun cl-prettyprint (form)
"Insert a pretty-printed rendition of a Lisp FORM in current buffer."
(let ((pt (point)) last)
(insert "\n" (prin1-to-string form) "\n")
(setq last (point))
(goto-char (1+ pt))
(while (search-forward "(quote " last t)
(delete-char -7)
(insert "'")
(forward-sexp)
(delete-char 1))
(goto-char (1+ pt))
(cl--do-prettyprint)))