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: Mon, 03 Jul 2017 05:29:48 +0300 Message-ID: <831spyp80z.fsf@gnu.org> References: <611468a0-3115-813a-7347-d0c06e155831@web.de> <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> <5958A6A4.4030400@gmx.at> <838tk7orp6.fsf@gnu.org> <8360faq33g.fsf@gnu.org> <81d3ccde-1796-78e7-ea78-701787ab96c4@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1499049077 9386 195.159.176.226 (3 Jul 2017 02:31:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Jul 2017 02:31:17 +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 Mon Jul 03 04:31:11 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 1dRr8m-0001tl-AX for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jul 2017 04:31:08 +0200 Original-Received: from localhost ([::1]:60034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRr8q-0003U7-32 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Jul 2017 22:31:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRr8j-0003Tq-Qs for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 22:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRr8g-0007hr-M9 for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 22:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRr8g-0007hl-Iw for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 22:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dRr8g-0007ZY-Aa for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 22:31: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: Mon, 03 Jul 2017 02:31: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.149904900929048 (code B ref 27427); Mon, 03 Jul 2017 02:31:02 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 3 Jul 2017 02:30:09 +0000 Original-Received: from localhost ([127.0.0.1]:49281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRr7o-0007YQ-2T for submit@debbugs.gnu.org; Sun, 02 Jul 2017 22:30:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRr7m-0007Wx-GP for 27427@debbugs.gnu.org; Sun, 02 Jul 2017 22:30:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRr7g-00075V-M4 for 27427@debbugs.gnu.org; Sun, 02 Jul 2017 22:30:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRr7b-00072d-Pn; Sun, 02 Jul 2017 22:29:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4618 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dRr7a-0004Ul-SP; Sun, 02 Jul 2017 22:29:55 -0400 In-reply-to: <81d3ccde-1796-78e7-ea78-701787ab96c4@yandex.ru> (message from Dmitry Gutov on Mon, 3 Jul 2017 03:22:56 +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:134110 Archived-At: > Cc: 27427@debbugs.gnu.org, alexanderm@web.de > From: Dmitry Gutov > Date: Mon, 3 Jul 2017 03:22:56 +0300 > > On 7/2/17 6:18 PM, Eli Zaretskii wrote: > > > We could have a feature whereby the coordinates are determined by a > > specific buffer position shown in a "normal" window. > > That's what I was thinking of as well. But that, in turn, might call for > some extra features: > > When there is not enough space below the current line to show the popup, > we display it above the current line. I'd expect the new popup code > reposition it like that automatically as well. > > But: in company we have feature where, when the popup is displayed above > the current line, the popup lines are inverted vertically (so that the > first completion is the closest to the current line visually). I'm not a > fan, but it's fairly popular. > > If the core popup handles repositioning, it would have to handle > inverting (optionally) as well, or run some sort of hook to require the > popup items to be recomputed. These are all doable, and AFAIU are needed even if the coordinates are specified by the application.