1

What controls the print depth of lisp forms? For example:

(macroexpand '(defun foo () (let ((bar)) (+ 1 2))))

becomes

(defalias (quote foo) (function (lambda nil (let ... ...))))

in the *Messages* buffer.

Tianxiang Xiong
  • 3,848
  • 16
  • 27
  • See the variables `eval-expression-print-length` and `eval-expression-print-level `. Here is a semi-related thread: http://emacs.stackexchange.com/questions/7978/how-can-i-view-the-full-package-alist-value-without-the-truncation-characters/7983#7983 – lawlist Sep 25 '16 at 22:26
  • Thanks; those led me to the ones I was *really* looking for, `print-length` and `print-level`. – Tianxiang Xiong Sep 25 '16 at 22:35
  • One of you: Please post the answer as an answer, so the question does not remain "unanswered". Thx. – Drew Sep 25 '16 at 23:12
  • It says I can do that in 2 days. – Tianxiang Xiong Sep 26 '16 at 02:40

1 Answers1

0

Print length/depth for the echo area are in eval-expression-print-length and eval-expresssion-print-depth respectively.

For general printing (e.g. princ), the relevant variables are print-length and print-level.

Tianxiang Xiong
  • 3,848
  • 16
  • 27