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.

  • See the variables eval-expression-print-length and eval-expression-print-level . Here is a semi-related thread: emacs.stackexchange.com/questions/7978/… – 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 2:40
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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.