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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9991 in the body.
You can then email your comments to 9991 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9991; Package emacs. (Tue, 08 Nov 2011 17:25:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tiphaine Turpin <tiphaine.turpin <at> inria.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 08 Nov 2011 17:25:07 GMT) Full text and rfc822 format available.

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

From: Tiphaine Turpin <tiphaine.turpin <at> inria.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: Incorrect return value from forward-line
Date: Tue, 08 Nov 2011 11:15:31 +0100
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.

Tiphaine Turpin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9991; Package emacs. (Tue, 08 Nov 2011 18:25:01 GMT) Full text and rfc822 format available.

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




Reply sent to Tiphaine Turpin <Tiphaine.Turpin <at> inria.fr>:
You have taken responsibility. (Tue, 08 Nov 2011 18:48:01 GMT) Full text and rfc822 format available.

Notification sent to Tiphaine Turpin <tiphaine.turpin <at> inria.fr>:
bug acknowledged by developer. (Tue, 08 Nov 2011 18:48:02 GMT) Full text and rfc822 format available.

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

From: Tiphaine Turpin <Tiphaine.Turpin <at> inria.fr>
To: Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#9991: Incorrect return value from forward-line
Date: Tue, 08 Nov 2011 21:31:33 +0100
Le 08/11/2011 19:24, Glenn Morris a écrit :
>
> 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.)
That's true, I just discovered the sentence, so either I read the
specification too quickly or the other system on which I was working
today has an older version of Emacs without this precision.

Thanks for your help and sorry about the noise...

Tiphaine





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Dec 2011 12:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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