all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#9991: Incorrect return value from forward-line
@ 2011-11-08 10:15 Tiphaine Turpin
  2011-11-08 18:24 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Tiphaine Turpin @ 2011-11-08 10:15 UTC (permalink / raw
  To: 9991

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#9991: Incorrect return value from forward-line
  2011-11-08 10:15 bug#9991: Incorrect return value from forward-line Tiphaine Turpin
@ 2011-11-08 18:24 ` Glenn Morris
  2011-11-08 20:31   ` Tiphaine Turpin
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2011-11-08 18:24 UTC (permalink / raw
  To: Tiphaine Turpin; +Cc: 9991

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#9991: Incorrect return value from forward-line
  2011-11-08 18:24 ` Glenn Morris
@ 2011-11-08 20:31   ` Tiphaine Turpin
  0 siblings, 0 replies; 3+ messages in thread
From: Tiphaine Turpin @ 2011-11-08 20:31 UTC (permalink / raw
  To: Glenn Morris

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






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-08 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 10:15 bug#9991: Incorrect return value from forward-line Tiphaine Turpin
2011-11-08 18:24 ` Glenn Morris
2011-11-08 20:31   ` Tiphaine Turpin

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.