Function: mc/line-number-at-pos

mc/line-number-at-pos is a function alias for line-number-at-pos, defined in fns.c.

Signature

(mc/line-number-at-pos &optional POSITION ABSOLUTE)

Documentation

Return the line number at POSITION in the current buffer.

If POSITION is nil or omitted, it defaults to point's position in the current buffer.

If the buffer is narrowed, the return value by default counts the lines from the beginning of the accessible portion of the buffer. But if the second optional argument ABSOLUTE is non-nil, the value counts the lines from the absolute start of the buffer, disregarding the narrowing.

Aliases

line-number-at-pos