]> git.eshelyaron.com Git - emacs.git/commit
Fix line-number-at-pos when POSITION is out of narrowing
authorEli Zaretskii <eliz@gnu.org>
Sat, 22 Apr 2023 16:27:16 +0000 (19:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 22 Apr 2023 16:27:16 +0000 (19:27 +0300)
commit9a0f10b5f88667261bafc65ccdd63bdd9ef80147
treeed99dda5df927febb4ddf1a626eb50bb7af7526d
parent4e0f4292aaf1a9bf26ba2ee2983955cefc50beea
Fix line-number-at-pos when POSITION is out of narrowing

* src/fns.c (Fline_number_at_pos): Don't signal an error when
ABSOLUTE is nil and POSITION is outside of the narrowing, like the
original Lisp implementation did.  Minor speedup by using the byte
position where it is available from the get-go.  (Bug#62857)
src/fns.c