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: Tue, 20 Jun 2017 18:04:22 +0300 Message-ID: <83h8zawvih.fsf@gnu.org> References: <611468a0-3115-813a-7347-d0c06e155831@web.de> <83vanrx5uo.fsf@gnu.org> <362a7d18-7f05-2e99-f8b3-41c353cf234f@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1497971124 11458 195.159.176.226 (20 Jun 2017 15:05:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Jun 2017 15:05:24 +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 Tue Jun 20 17:05:13 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 1dNKiP-0002RG-9u for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jun 2017 17:05:13 +0200 Original-Received: from localhost ([::1]:49276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNKiU-0005sJ-Fw for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jun 2017 11:05:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNKiJ-0005lj-HF for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2017 11:05:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNKiE-00013u-Ih for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2017 11:05:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55641) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNKiE-00013q-FI for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2017 11:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dNKiE-0002m5-8l for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2017 11:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jun 2017 15:05: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.149797108410637 (code B ref 27427); Tue, 20 Jun 2017 15:05:02 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 20 Jun 2017 15:04:44 +0000 Original-Received: from localhost ([127.0.0.1]:58318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNKhw-0002lU-77 for submit@debbugs.gnu.org; Tue, 20 Jun 2017 11:04:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNKhu-0002lH-3R for 27427@debbugs.gnu.org; Tue, 20 Jun 2017 11:04:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNKhl-0000st-0m for 27427@debbugs.gnu.org; Tue, 20 Jun 2017 11:04:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNKhk-0000sp-Tk; Tue, 20 Jun 2017 11:04:32 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2303 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dNKhk-0004r3-82; Tue, 20 Jun 2017 11:04:32 -0400 In-reply-to: <362a7d18-7f05-2e99-f8b3-41c353cf234f@yandex.ru> (message from Dmitry Gutov on Tue, 20 Jun 2017 00:03:08 +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:133783 Archived-At: > Cc: 27427@debbugs.gnu.org > From: Dmitry Gutov > Date: Tue, 20 Jun 2017 00:03:08 +0300 > > With (setq line-prefix "..."), > > (car (posn-col-row (posn-at-point))) suddenly returns 3 at bol. I guess you think this result is incorrect, but I don't think I understand why. posn-col-row returns the horizontal window-relative coordinate in units of the frame's canonical column width, so it is expected that its value at BOL will be non-zero when there's a line-prefix displayed there. Can you tell how this value is used in company-mode? I think the key to my understanding why this change interferes with company-mode is in that direction. > > 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. If you do support the line-prefix property, why are there problems with line-prefix the variable? The effect on display is the same, AFAIU.