GNU bug report logs -
#27427
26.0.50; Native line numbers lead to display error in company-mode popup
Previous Next
Reported by: Alexander Miller <alexanderm <at> web.de>
Date: Mon, 19 Jun 2017 16:51:02 UTC
Severity: normal
Found in version 26.0.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Cc: alexanderm <at> web.de, 27427 <at> debbugs.gnu.org
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Wed, 21 Jun 2017 16:04:58 +0300
>
> On 6/21/17 5:40 AM, Eli Zaretskii wrote:
>
> >> When the position at bol is interpreted as "column 3", all lines of the
> >> rectangle are rendered starting with the fourth character of each line.
> >
> > So this is the root cause of the problem. Is there a reason not to
> > start rendering from the character whose posn-col-row is 3?
>
> How?
>
> Does that mean I'll have to call posn-at-point twice now? Once for
> point, and once for beginning-of-visual-line?
I guess so. I understand that now you call current-column or
something similar at BOL? Or do you just assume the column there is
zero?
> Even that won't solve all the rendering issues. In my testing, the first
> line of the popup is not at the same column as the rest of them.
> Probably because of the `line-prefix' property on the overlay which I
> explained in the previous email. And we can't stop putting it there
> because we don't have a better solution for the `line-prefix' text property.
What I had in mind is to come up with a solution that will work the
same with line-prefix specified in any way we support. Then you won't
need to put the line-prefix property on the company overlay.
Btw, can you remind me why we don't use pop-up menus for company
popups?
> Even so, I'm not sure this will be the end of it. Setting line-prefix
> doesn't seem to be an accurate model of the problem company popup has
> with native line numbering:
Could be. Can I seduce you to try the line-numbers branch? ;-)
This bug report was last modified 7 years and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.