[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26417: 25.2; Add current-line in simple.el

From: Damien Cassou
Subject: bug#26417: 25.2; Add current-line in simple.el
Date: Wed, 12 Apr 2017 10:52:47 +0200

Nicolas Petton <address@hidden> writes:
I know narrowing have no effect on `current-column', but does it make sense to widen the buffer for `current-line'? (I don't have a strong opinion, but I think it's worth asking the question).

The existing function `line-number-at-pos` returns the line number relative to current narrowing. I need a function that returns the absolute line number (as I need to save the line number in a separate file so that I can later open at the appropriate line). Do you think the function name is misleading? What about one of these?

- line-number-at-pos-absolute
- current-absolute-line

Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

reply via email to

[Prev in Thread] Current Thread [Next in Thread]