Subject: Re: bug#9991: Incorrect return value from forward-line

From: Glenn Morris <[email-masked]>
Date: Tue, 08 Nov 2011 13:24:01 -0500

Tiphaine Turpin wrote:

> The number of lines left to move which is returned by forward-line
> considers the last line as processed if it is not empty. For example,
> (forward-line 1) evaluates to 0 if point is on the last line but
> strictly before the end of the buffer.

I think you are describing the documented behaviour?

C-h f forward-line

   With positive N, a non-empty line at the end counts as one line
   successfully moved (for the return value).

(ISTR thinking it odd myself.)