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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Tiphaine Turpin <Tiphaine.Turpin <at> inria.fr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#9991: closed (Incorrect return value from forward-line)
Date: Tue, 08 Nov 2011 18:48:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 08 Nov 2011 21:31:33 +0100
with message-id <4EB991A5.90701 <at> inria.fr>
and subject line Re: bug#9991: Incorrect return value from forward-line
has caused the debbugs.gnu.org bug report #9991,
regarding Incorrect return value from forward-line
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
9991: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9991
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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


[Message part 3 (message/rfc822, inline)]
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



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

Previous Next


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