]> git.eshelyaron.com Git - emacs.git/commit
Use `line-number-at-pos' in `count-lines'
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Feb 2021 16:29:57 +0000 (17:29 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Feb 2021 16:30:02 +0000 (17:30 +0100)
commit7c5938ad7d8884d03471e2395937e11611faadb9
treeb177a0664482391bab587f37a4dedbcd238beca2
parent9380a7ed906e667df4fc5b9d9c8e487fafa7c654
Use `line-number-at-pos' in `count-lines'

* lisp/simple.el (count-lines): Use `line-number-at-pos', which
should be faster.
lisp/simple.el