clojure-emacs / cider

The Clojure Interactive Development Environment that Rocks for Emacs
https://cider.mx
GNU General Public License v3.0
3.54k stars 646 forks source link

Reduce the `nrepl.middleware.print/quota` for interactive eval #3633

Open vemv opened 6 months ago

vemv commented 6 months ago

When doing interactive eval, the result will generally be displayed inline in the current buffer, as an overlay (there's the exception of the output-to-current-buffer arg).

So the default quota of 1MB is excessive there, as we never possibly want to render 1MB worth of output in the current buffer.

(There's client-side trimming, but we shouldn't overload it trivially)

The quota should be limited to appoximately one screenful worth of characters, give or take - can be discussed at PR time.