简体   繁体   English

Emacs Cider Repl 缓冲区内的长输出

[英]Long Outputs Inside Emacs Cider Repl Buffers

When using Emacs with the Cider plug-in, moving inside the REPL buffer gets incredibly slow, when there was accidently printed a huge amount of output to the REPL buffer.当使用带有 Cider 插件的 Emacs 时,在 REPL 缓冲区内移动会变得非常缓慢,因为不小心将大量输出打印到 REPL 缓冲区。

  • Is there a way to configure Leiningen (or nrepl?) to limit the number of lines that are allowed to be printed by one evaluation in the repl?有没有办法配置 Leiningen(或 nrepl?)来限制 repl 中一个评估允许打印的行数?
  • Is there maybe a way to let Emacs clear the buffer after the output happened?有没有办法让 Emacs 在输出发生后清除缓冲区?

Thanks in advance!提前致谢!

Have you tried setting *print-length* ?您是否尝试过设置*print-length* See this documentation and search for 'Limiting output in the REPL'.请参阅文档并搜索“限制 REPL 中的输出”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM