How to insert a longer list in my buffer using elisp?

If I do Cu M-: (to paste the result of the lisp operator into the buffer), and then I do something like:

(progn (setq x 0 l '()) (while(< x 30) (push (random 99) l) (incf x 1)) (nreverse l))

I get:

(89 29 27 23 56 88 37 11 33 20 98 95 ...)

With a finite ellipse. How can this be done? Something like inserting a buffer into the resulting list.

+3
source share
2 answers

to try

(setq eval-expression-print-length nil)

in .emacs

+6
source

M-: (insert (pp (loop repeat 30 collect (random 99))))

May be needed (require 'cl).

+1
source

All Articles