From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#27427: 26.0.50; Native line numbers lead to display error in company-mode popup Date: Sun, 02 Jul 2017 09:54:12 +0200 Message-ID: <5958A6A4.4030400@gmx.at> References: <611468a0-3115-813a-7347-d0c06e155831@web.de> <83tw39urzq.fsf@gnu.org> <4c4b873b-2bec-1c12-82f5-325b558bea93@yandex.ru> <83o9tgul6h.fsf@gnu.org> <49b431fd-aaa4-e7ca-06fc-7146a0a5692c@yandex.ru> <83a84zul0d.fsf@gnu.org> <513eca6f-998a-a937-76c4-7cf2fb0ff787@yandex.ru> <83wp81u8rz.fsf@gnu.org> <8ec1b301-79dc-7d11-b3f9-85ae2e925785@yandex.ru> <594FDDC5.6040009@gmx.at> <83zicwrkmu.fsf@gnu.org> <5950C342.7010908@gmx.at> <83mv8ussb6.fsf@gnu.org> <595203DE.1040608@gmx.at> <837ezxsd02.fsf@gnu.org> <59527971.5000205@gmx.at> <83y3sdqtto.fsf@gnu.org> <59536CA6.10608@gmx.at> <83r2y4qcs1.fsf@gnu.org> <5953F706.7080405@gmx.at> <83o9t8q6u1.fsf@gnu.org> <5954A995.9@gmx.at> <83d19mrc3d.fsf@gnu.org> <59560B86.4030600@gmx.at> <8337ahrf9w.fsf@gnu.org> <59577A15.6010209@gmx.at> <83podkpdtw.fsf@gnu.org> <5957A223.2070003@gmx.at> <83lgo8p9hx.fsf@gnu.org> <5957BDC2.1060902@gmx.at> <83k23sp3ku.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498982114 10783 195.159.176.226 (2 Jul 2017 07:55:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2017 07:55:14 +0000 (UTC) Cc: alexanderm@web.de, 27427@debbugs.gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 02 09:55:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRZio-0002RQ-AF for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Jul 2017 09:55:10 +0200 Original-Received: from localhost ([::1]:57109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRZis-0005bB-2k for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Jul 2017 03:55:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRZik-0005Z1-KH for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 03:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRZig-00024H-Ow for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 03:55:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRZig-00024D-LG for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 03:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dRZig-0001lG-69 for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 03:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jul 2017 07:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27427 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27427-submit@debbugs.gnu.org id=B27427.14989820666714 (code B ref 27427); Sun, 02 Jul 2017 07:55:02 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 2 Jul 2017 07:54:26 +0000 Original-Received: from localhost ([127.0.0.1]:48127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRZi6-0001kE-Bx for submit@debbugs.gnu.org; Sun, 02 Jul 2017 03:54:26 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:64943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRZi4-0001k2-Q4 for 27427@debbugs.gnu.org; Sun, 02 Jul 2017 03:54:25 -0400 Original-Received: from [192.168.1.101] ([212.95.7.32]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LiDKt-1e5qCg26NP-00nOWf; Sun, 02 Jul 2017 09:54:17 +0200 In-Reply-To: <83k23sp3ku.fsf@gnu.org> X-Provags-ID: V03:K0:BpaUkKzcl9xgKiUzJOMWBeVA2Vrk8kCwATuoeVbDL8S2+PUS70V K0cBrFyX2kfDHL3KezJ1LU2lB8AY0R6LONA//b0KM7NHACjZ06vDKlOJwf+HVOocU+PgQO0 16arApG16SXfK9ZIznteWzxuaXOVBPT/MLsn70oEnLwsX1MMuVqhE4jEIVEVTI48uSeGCkn vxj6dQixCGdN9I6w6phyw== X-UI-Out-Filterresults: notjunk:1;V01:K0:wq+syV/9z1w=:mojV7wcZZDY7qc1VF/NaN3 fRsHnnN16zD3VRSAiJwEtuFVBWHC2vtKPb4LL/Gs67IEivqjzFSvXPoR5Ad3RVw/UjTM9zPG7 S6OEAgNXOJ2Bcm4WxVk1DJPfqluTlVoQtY+bSLmOpzlwEbZ7mJ5nclkfCYtwE5Xtifq8Kk72P d78xmNVXNU7LojMbDnOJk0YRcYMmV7k2sPPwi6I3+3SERaVszJ8sTDOcSWrGgWNBI/cnBU/+/ 7WAPI+CBnSy8cWLWh4YvevMuX6nSCZr595C/7UEX4CJosxHK/N2YhC2oBuPDVrKxMzzLhxYo9 3MuByJb63Xo8TLmBkFF27dbtF2lvcALLyNqlM6FDjgwpjLYNByvG1UougRb/78wV+KjYLWo0l LxKvpHPO+AUXPqK2tnZlLpp5uuJou+GNSPAs56p2AigmHWqRut9e7zz6Bn2G3g4SrbGxGIYsD ffiZxwyQrMxrz6X5yd6tRpRlwcB0MW7pVguPtKp1eW8ARLm+Fa2tSSOhhEAtphawRseCgkGLn dCTjsxMY3LOTiq2UbaG5XBfRMK8SOCvw7Yh2dk4FOKORcX8NPLS6+szXU1C1GB3gGcBXnhCbl PCxbtFo1gJLAtG46N3enigQpMk652iIr0qPjUqMckxh5d/o0qcvZsnil9WKsDlIz5+6Xy8ZdA g2P+VPcxJgdy79deW3GIH2KLPbhV8YpoxNkRLMHheP0tVFk0WTBFylX5cS6AA8qUDZqKDevXq Wk8g4a3koVpx1XxRuCaQKsjJETLed2z0LFRzkZjg7FSCoSSu5r34MBmwIw3ukQ39QTk8c5G4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134088 Archived-At: > 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 =E2=80=98company-mode=E2=80=99 and all packages trying to= solve similar display problems are based on idle timers. The overlay is moved, if necessry, when the timeout expires. I'm not sure whether it makes sense to use a timer-less approach. If it does, we should allow moving the overlay right after recalculating the frame's glyph matrix on TTYs. Whether removing timers makes sense for GUIs is yet another question. In this context the =E2=80=98window-text-change-functions=E2=80=99 I ment= ioned 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. martin