GNU bug report logs - #9991
Incorrect return value from forward-line

Previous Next

Package: emacs;

Reported by: Tiphaine Turpin <tiphaine.turpin <at> inria.fr>

Date: Tue, 8 Nov 2011 17:25:02 UTC

Severity: minor

Tags: notabug

Done: Tiphaine Turpin <Tiphaine.Turpin <at> inria.fr>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 9991 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Tiphaine Turpin <tiphaine.turpin <at> inria.fr>
Cc: 9991 <at> debbugs.gnu.org
Subject: Re: bug#9991: Incorrect return value from forward-line
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.)




This bug report was last modified 13 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.