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.



--
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------