nonsequitur / inf-ruby

218 stars 69 forks source link

Should undo being dissabled on inf-ruby buffers? #109

Closed anquegi closed 6 years ago

anquegi commented 7 years ago

Thanks for this great package, When getting commands with a lot of results I get this warning

Warning (undo): Buffer ‘*rails*’ undo info was 15066080 bytes long.
The undo info was discarded because it exceeded `undo-outer-limit'.

This is normal if you executed a command that made a huge change
to the buffer.  In that case, to prevent similar problems in the
future, set `undo-outer-limit' to a value that is large enough to
cover the maximum size of normal changes you expect a single
command to make, but not so large that it might exceed the
maximum memory allotted to Emacs.

If you did not execute any such command, the situation is
probably due to a bug and you should report it.

You can disable the popping up of this buffer by adding the entry
(undo discard-info) to the user option `warning-suppress-types',
which is defined in the `warnings' library.

This thing I think that cause to hang emacs, I can disable this with hooking buffer-disable-undo or maybe start the name of the buffer with space, maybe only adding this to the documentation

dgutov commented 7 years ago

Do you have large output of some command in it?

Disabling undo doesn't sound like a good idea: people are typing in it.

anquegi commented 7 years ago

For example collecting data from database or things like this