bug#46485: 28.0.50; Recent change to count-lines broke gnus-cite faces
Since a few days ago, Gnus sometimes applies gnus-cite faces to
paragraphs below the actual citations. For example, save the attached
article somewhere, then, from emacs -Q:
- M-x gnus-no-server
- G f /path/to/repro.mbox
- RET RET
There are a few things that seem to go wrong with fontification of
citations; for example, the line that starts with "That is a concern" is
erroneously fontified with gnus-cite-1.
I've tried to bisect this, and Git points out 2021-02-07 "Use
`line-number-at-pos' in `count-lines'" (7c5938ad7d).
When time permits, I'll start looking into what causes the bug, and
maybe whip up a test case; I figure someone more familiar with the code
might easily beat me to it though, so I'm reporting this before having
fully figured it out.
In GNU Emacs 28.0.50 (build 13, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
of 2021-02-08 built on my-little-tumbleweed
Repository revision: 9a698da7dea51a59aa9ddfb71887ac6b865883dc
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12010000
System Description: openSUSE Tumbleweed