Subject: Re: bug#22763: 25.1.50; Feature Request -- A faster method to obtain line number at position.

From: Ben Levy <[email-masked]>
Date: Thu, 20 May 2021 19:53:24 +0000

I'm not 100% sure about this, but it looks like when
line-number-at-pos was written in elisp, it didn't do
any bounds check, and instead called (widen) before
counting lines.  Did the elisp version have unintended
behavior, or are the differences with the C version
a regression?

I think it's causing this bug:
https://github.com/io12/good-scroll.el/issues/16