Subject: RE: bug#11266: emacs 23.4 with --batch and (next-line)

From: <[email-masked]>
Date: Wed, 18 Apr 2012 15:47:49 -0600

Good to know, I've already corrected my scripts to use forward-line instead.

-----Original Message-----
From: Stefan Monnier [mailto:[email-masked]] 
Sent: Wednesday, April 18, 2012 3:46 PM
To: RYTTING,MICHAEL (A-ColSprings,ex1)
Cc: [email-masked]
Subject: Re: bug#11266: emacs 23.4 with --batch and (next-line)

tags 11266 notabug
thanks

> 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.

`next-line' in Emacs-23 was changed to use visual lines rather than logical lines, so its behavior depends on the shape of the selected window.  And indeed, the selected-window depends on the terminal (-batch uses a dummy terminal).

        Stefan