Function: line-end-position
line-end-position is a function defined in editfns.c.
Signature
(line-end-position &optional N)
Documentation
Return the position of the last character in the current line/field.
With argument N not nil or 1, move forward N - 1 lines first. If scan reaches end of buffer, return that position.
This function is like pos-eol (which see), but respects fields.
This function constrains the returned position to the current field
unless that would be on a different line from the original,
unconstrained result. If N is nil or 1, and a rear-sticky field ends
at point, the scan stops as soon as it starts. To ignore field
boundaries bind inhibit-field-text-motion to t.
This function does not move point.
Other relevant functions are documented in the buffer group.
Probably introduced at or before Emacs version 20.4.
Shortdoc
;; buffer
(line-end-position)
=> 3488
Aliases
point-at-eol (obsolete since 29.1)
mh-line-end-position (obsolete since 29.1)
hashcash-point-at-eol (obsolete since 28.1)
Source Code
// Defined in /usr/src/emacs/src/editfns.c
{
/* Return END_POS constrained to the current input field. */
return Fconstrain_to_field (make_fixnum (eol (n)), make_fixnum (PT),
Qnil, Qt, Qnil);
}