[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9991: Incorrect return value from forward-line

From: Glenn Morris
Subject: bug#9991: Incorrect return value from forward-line
Date: Tue, 08 Nov 2011 13:24:01 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]