Hi,
Is there anyway to limit the size of the repl buffer ? Something like 10000 lines max for example. Emacs slows a lot with large buffers.
Best regards,
Quick googling produced this: http://stackoverflow.com/questions/11239201/can-i-limit-the-length-of-the-co...
Does that help?
Joe
Joe Corneli holtzermann17@gmail.com writes:
Quick googling produced this: http://stackoverflow.com/questions/11239201/can-i-limit-the-length-of-the-co...
Does that help?
That won't help with slime repl.
Fabrice Popineau fabrice.popineau@supelec.fr writes:
Hi,
Is there anyway to limit the size of the repl buffer ? Something like 10000 lines max for example. Emacs slows a lot with large buffers.
No, there isn't anything. You can clear the output manually with C-c M-o.
On Fri, Sep 6, 2013 at 1:50 PM, Stas Boukarev stassats@gmail.com wrote:
Fabrice Popineau fabrice.popineau@supelec.fr writes:
Hi,
Is there anyway to limit the size of the repl buffer ? Something like 10000 lines max for example. Emacs slows a lot with large buffers.
No, there isn't anything. You can clear the output manually with C-c M-o.
Dude, with Emacs there's always a way.
Indeed, a modified version of `slime-repl-clear-buffer' could clear out the required amount of content. Really just a matter of figuring out what hook to add that to (per my earlier post) or what function to advise and Fabrice is sorted.
Thanks for the comint trick, but I was pretty sure that slime-repl did not rely on comint as Stas confirmed.
I was also thinking about `slime-repl-clear-buffer'. Advising it is a good idea.
My problem is that I ran some program on huge data and it logged about 10^6 lines before finishing.
I'll try to devise something before doing that again. I want to see that things run as expected. But I don't want to keep the whole history.
Fabrice
2013/9/6 Joe Corneli holtzermann17@gmail.com
On Fri, Sep 6, 2013 at 1:50 PM, Stas Boukarev stassats@gmail.com wrote:
Fabrice Popineau fabrice.popineau@supelec.fr writes:
Hi,
Is there anyway to limit the size of the repl buffer ? Something like 10000 lines max for example. Emacs slows a lot with large buffers.
No, there isn't anything. You can clear the output manually with C-c M-o.
Dude, with Emacs there's always a way.
Indeed, a modified version of `slime-repl-clear-buffer' could clear out the required amount of content. Really just a matter of figuring out what hook to add that to (per my earlier post) or what function to advise and Fabrice is sorted.
On Fri, Sep 6, 2013 at 2:30 PM, Fabrice Popineau fabrice.popineau@supelec.fr wrote:
My problem is that I ran some program on huge data and it logged about 10^6 lines before finishing.
In response to a somewhat similar query, Helmut Eller once advised me: "Setting printer variables like *print-length* to fairly small values is usually a good idea."
Might do in a pinch?
Fabrice Popineau fabrice.popineau@supelec.fr writes:
Thanks for the comint trick, but I was pretty sure that slime-repl did not rely on comint as Stas confirmed.
I was also thinking about `slime-repl-clear-buffer'. Advising it is a good idea.
My problem is that I ran some program on huge data and it logged about 10^6 lines before finishing.
I'll try to devise something before doing that again. I want to see that things run as expected. But I don't want to keep the whole history.
When this happens, I usually redirect the whole output to a file and then view it in emacs with `auto-revert-mode'.
Btw, Emacs can manage large buffer; in my experience, the culprit is often the fontification process (especially if you use slime-presentations), because Emacs redoes the fontification each time the buffer is updated, you can test this by disabling fontification (M-x font-lock-mode RET) and see if you see some improvement.
For example, when I use M-x compile, I disable the fontification until the compilation is done to avoid freezing my emacs.
Fabrice
2013/9/6 Joe Corneli holtzermann17@gmail.com
On Fri, Sep 6, 2013 at 1:50 PM, Stas Boukarev <stassats@gmail.com> wrote: > Fabrice Popineau <fabrice.popineau@supelec.fr> writes: > >> Hi, >> >> Is there anyway to limit the size of the repl buffer ? >> Something like 10000 lines max for example. >> Emacs slows a lot with large buffers. > No, there isn't anything. You can clear the output manually with > C-c M-o. Dude, with Emacs there's always a way. Indeed, a modified version of `slime-repl-clear-buffer' could clear out the required amount of content. Really just a matter of figuring out what hook to add that to (per my earlier post) or what function to advise and Fabrice is sorted.
-- Fabrice Popineau
SUPELEC Département Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212