bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22763: 25.1.50; Feature Request -- A faster method to obtain line nu


From: Lars Ingebrigtsen
Subject: bug#22763: 25.1.50; Feature Request -- A faster method to obtain line number at position.
Date: Tue, 09 Feb 2021 08:13:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> `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

Ooops.  Looks like I fumbled the char/byte thing in 56e76f0eb.  This
should now be fixed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]