Printing 如何评估缓冲区并将所有内容打印到另一个缓冲区?

Printing 如何评估缓冲区并将所有内容打印到另一个缓冲区?,printing,emacs,eval,Printing,Emacs,Eval,我在这上面搜索了几个小时,我已经放弃了。也许你能帮忙 我所要做的就是在缓冲区中计算LISP并查看打印的所有内容。例如: (setq NUMBERS (list 1 2 3)) (add-to-list 'NUMBERS 4 t) (print NUMBERS) 所以我做了M-x评估缓冲区,我没有看到打印的数字。(使用M-x M-e时不会发生这种情况,但我不想对每一行都这样做,也不想每次都标记区域。我只想计算整个缓冲区)。我查阅了eval buffer的描述,发现有一个用于打印的参数,但我不能给

我在这上面搜索了几个小时,我已经放弃了。也许你能帮忙

我所要做的就是在缓冲区中计算LISP并查看打印的所有内容。例如:

(setq NUMBERS (list 1 2 3))
(add-to-list 'NUMBERS 4 t)
(print NUMBERS)
所以我做了M-x评估缓冲区,我没有看到打印的数字。(使用M-x M-e时不会发生这种情况,但我不想对每一行都这样做,也不想每次都标记区域。我只想计算整个缓冲区)。我查阅了eval buffer的描述,发现有一个用于打印的参数,但我不能给它任何值,因为我不知道在那里实际键入什么。也许是“打印”吧?但是(通用参数)只提供数值,所以我迷路了


基本问题:如何评估整个缓冲区并实际查看打印的内容?

这使输出显示在Emacs 27.1中的回显区域中:

(print NUMBERS t)
尽管文件上说:

Optional argument PRINTCHARFUN is the output stream, which can be one
of these:

   - a buffer, in which case output is inserted into that buffer at point;
   - a marker, in which case output is inserted at marker’s position;
   - a function, in which case that function is called once for each
     character of OBJECT’s printed representation;
   - a symbol, in which case that symbol’s function definition is called; or
   - t, in which case the output is displayed in the echo area.

If PRINTCHARFUN is omitted, the value of ‘standard-output’ (which see)
is used instead.
标准输出是:

Its value is t