title: Emacs buffer undo limit
body: <p>I get this warning in my <code>matlab-shell</code> buffer when I print alot to stdout:</p>
  
  <pre><code>Warning (undo): Buffer `*MATLAB*' undo info was 12268000 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.
  </code></pre>
  
  <p>My emacs looks like this:
  <img src="https://i.stack.imgur.com/jU8X3.png" alt="enter image description here"></p>
  
  <p>I really don't need any undo in the <code>matlab-shell</code> which is the right buffer. Is there a way to disable this warning? Note that the left buffer is a <code>MATLAB</code> script which means that the major mode is MATLAB, and certainly undo should not be disabled there. </p>