Subject: Re: bug#27427: 26.0.50; Native line numbers lead to display error in company-mode popup

From: Dmitry Gutov <[email-masked]>
Date: Tue, 20 Jun 2017 00:03:08 +0300

On 6/19/17 8:08 PM, Eli Zaretskii wrote:

> It looks like some packages need to revisit their calculations of
> horizontal coordinates.  I'm guessing they convert column numbers into
> pixels, which will err when line numbers are displayed.  They should
> instead use posn-at-point and the likes.

Use it how?

With (setq line-prefix "..."),

(car (posn-col-row (posn-at-point))) suddenly returns 3 at bol.

> Per Martin's analysis, the
> same problems should happen when the buffer has line-prefix defined;
> could you try that?

Indeed, it does. But it's easy for company-mode to ignore the 
possibility of line-prefix variable being set (it almost never happens).

We do support line-prefix when it's assigned via text property.