GNU bug report logs - #27427
26.0.50; Native line numbers lead to display error in company-mode popup

Previous Next

Package: emacs;

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


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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>, Alexander Miller <alexanderm <at> web.de>
Cc: 27427 <at> debbugs.gnu.org
Subject: Re: bug#27427: 26.0.50; Native line numbers lead to display error in
 company-mode popup
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.




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.