]> git.eshelyaron.com Git - emacs.git/commit
Add a new function 'line-number-at-position'
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Feb 2021 15:02:56 +0000 (16:02 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Feb 2021 15:03:02 +0000 (16:03 +0100)
commit094a109b8eefbabbc99dba925ebec9887c101a91
treede1959ee43a6a1b8bda4de6b4ec781a8eccdd0a3
parent4e8d36fdaadade020f0bcadc70d617d8b07b739c
Add a new function 'line-number-at-position'

* doc/lispref/positions.texi (Text Lines): Document it.

* lisp/simple.el (count-lines): Use it.
(line-number-at-pos): Ditto.

* src/fns.c (Fline_number_at_position): New function (bug#22763).
doc/lispref/positions.texi
etc/NEWS
lisp/simple.el
src/fns.c
test/src/fns-tests.el