From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27427: 26.0.50; Native line numbers lead to display error in company-mode popup Date: Sat, 15 Jul 2017 20:49:45 +0300 Message-ID: <83r2xhegjq.fsf@gnu.org> References: <611468a0-3115-813a-7347-d0c06e155831@web.de> <83vanrx5uo.fsf@gnu.org> <362a7d18-7f05-2e99-f8b3-41c353cf234f@yandex.ru> <83h8zawvih.fsf@gnu.org> <00f59a24-2d80-ca47-b6f3-3d219aa5aa3f@yandex.ru> <8360fqvz9x.fsf@gnu.org> <6aa4616d-79f7-db1b-c048-076a9a48596f@yandex.ru> <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> <83shipthve.fsf@gnu.org> <83fueotasd.fsf@gnu.org> <838tkgt8dp.fsf@gnu.org> <8337aot0fk.fsf@gnu.org> <35924ed4-65fc-6180-8a02-8158a192b4c2@yandex.ru> <860e76b5-513f-bfcd-e584-ea15cfa0772a@yandex.ru> <837ezbh7jr.fsf@gnu.org> <83379zh52t.fsf@gnu.org> <0374e7aa-451c-878a-8543-ab0a33cc49d5@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1500141012 25189 195.159.176.226 (15 Jul 2017 17:50:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2017 17:50:12 +0000 (UTC) Cc: alexanderm@web.de, 27427@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 15 19:50:08 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 1dWRCe-00069G-T1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 19:50:04 +0200 Original-Received: from localhost ([::1]:42875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWRCk-0008VX-Bx for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 13:50:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWRCf-0008VM-49 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 13:50:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWRCc-0003XM-2j for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 13:50:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWRCb-0003X4-VN for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 13:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWRCb-0004ZS-MB for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 13:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2017 17:50:01 +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.150014099417554 (code B ref 27427); Sat, 15 Jul 2017 17:50:01 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 15 Jul 2017 17:49:54 +0000 Original-Received: from localhost ([127.0.0.1]:40624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWRCS-0004Z1-GC for submit@debbugs.gnu.org; Sat, 15 Jul 2017 13:49:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWRCQ-0004Yn-LW for 27427@debbugs.gnu.org; Sat, 15 Jul 2017 13:49:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWRCI-0003HA-GO for 27427@debbugs.gnu.org; Sat, 15 Jul 2017 13:49:45 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWRCI-0003H2-Cg; Sat, 15 Jul 2017 13:49:42 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2145 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dWRCH-00055i-OE; Sat, 15 Jul 2017 13:49:42 -0400 In-reply-to: <0374e7aa-451c-878a-8543-ab0a33cc49d5@yandex.ru> (message from Dmitry Gutov on Sat, 15 Jul 2017 20:38:15 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:134597 Archived-At: > Cc: alexanderm@web.de, 27427-done@debbugs.gnu.org > From: Dmitry Gutov > Date: Sat, 15 Jul 2017 20:38:15 +0300 > > > (If you think posn-at-point takes that information from what is > > displayed on the glass, or from some of its internal representation, > > then that's not what it does, because the internal representation of > > what's on the glass is many times outdated when a Lisp program runs, > > so it cannot be trusted.) > > I was thinking there was some change canary (or many of them), and the > "internal representation" is recomputed when any of those values change. The internal representation is recomputed only as part of a redisplay cycle. And we cannot start a redisplay cycle before the Lisp interpreter has done its thing, and we are back in the main loop, because only then we know all the buffers and other related Lisp data are in a consistent state that can be reflected on the glass without risking inconsistencies.