I recently upgraded to emacs 23.4 and found a rather obscure bug. When invoked with -batch emacs behaves differently with the command (next-line) compared to when it is invoked without batch. I had to switch to using (forward-line) in my code to work around this. This behavior can be easily seen by running. emacs -batch config.log --eval "(next-line 1)" And you'll see and End of buffer message. While emacs -Q config.log --eval "(next-line 1)" Produces no such error. Michael Rytting Agilent Technologies michael_rytting@agilent.com 719-590-3708