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 #284 received at 27427 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alexanderm <at> web.de, 27427 <at> debbugs.gnu.org
Subject: Re: bug#27427: 26.0.50; Native line numbers lead to display error in
 company-mode popup
Date: Fri, 14 Jul 2017 09:24:58 +0300
On 7/14/17 9:11 AM, Eli Zaretskii wrote:

> You could use the new function line-number-display-width to obtain
> that information.

Thanks. The current patch seems preferable, though. And since you are 
saying it's good enough, it seems I have no need for the 
display-line-numbers-disable text property either, sorry.

> No, it isn't brittle.  What are you struggling to understand?  Maybe I
> can help.

To get the value of the current column, Emacs needs to trigger 
redisplay, right? To know how many columns the numbers take up. Then it 
has to redisplay again before the user sees the result.

So I'm surprised Emacs knows it needs to perform two redisplays just 
because I bound display-line-numbers to nil temporarily.




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.