title: Emacs: can I limit a number of lines in a buffer
body: <p>For debugging an application via Emacs and gdb, the number of lines of a debug output sometimes may quickly overcome 9xxxx. Is there a way to force Emacs into removing old lines after the number exceed e.g. 1000?</p>