GNU bug report logs - #22763
25.1.50; Feature Request -- A faster method to obtain line number at position.

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Mon, 22 Feb 2016 02:44:01 UTC

Severity: wishlist

Tags: fixed

Found in version 25.1.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #93 received at 22763 <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: 22763 <at> debbugs.gnu.org
Cc: larsi <at> gnus.org, esq <at> lawlist.com, eliz <at> gnu.org, monnier <at> iro.umontreal.ca
Subject: bug#22763: 25.1.50; Feature Request -- A faster method to obtain
 line number at position.
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.




This bug report was last modified 3 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.