Added Ragnar's limit emacs repl buffer function