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

From: Katsumi Yamaoka <[email-masked]>
Date: Tue, 09 Feb 2021 11:17:42 +0900

Hi,

`gnus-cite-parse' got to fail on Gnus articles containing non-ASCII
text.  It is because `count-lines', that uses `line-number-at-pos'
now, fails to count text lines correctly as follows:

(with-temp-buffer
  (insert "あ\nい\nう\nえ\nお\n")
  (count-lines (point) (point)))
 => 3

(save-window-excursion
  (view-hello-file)
  (goto-char (point-max))
  (count-lines (point) (point)))
 => 41

Thanks.