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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: alexanderm <at> web.de, 27427 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: Re: bug#27427: 26.0.50; Native line numbers lead to display error
 in company-mode popup
Date: Sun, 02 Jul 2017 17:10:13 +0300
> Date: Sun, 02 Jul 2017 09:54:12 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: dgutov <at> yandex.ru, alexanderm <at> web.de, 27427 <at> debbugs.gnu.org
> 
>  > Yes, but I presumed it will do it the same way company-mode reacts to
>  > such changes today.  Currently. company-mode recomputes and moves its
>  > overlay; it will instead recompute the text and its position.
> 
> To my knowledge ‘company-mode’ and all packages trying to solve similar
> display problems are based on idle timers.

I thought they used post-command-hook, but I will let Dmitry comment
on that.

> In this context the ‘window-text-change-functions’ I mentioned earlier
> seems completely useless.  Here doing for example
> 
> (add-hook 'window-text-change-functions 'ignore)
> 
> just gets me into a loop and I have to kill Emacs.  Also, it's not clear
> to me why this hook is considered abnormal and how to identify from
> Elisp the window that is redisplayed at the time the hook is run.  The
> fact that the window's buffer is current at that time is hardly useful.
> So I think we should either remove that hook or completely redesign it.

This hook ws introduced for linum.el, but linum.el as added to Emacs
never used it.  We should delete the hook and any references to it in
the manuals.




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.