From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#27427: 26.0.50; Native line numbers lead to display error in company-mode popup Date: Mon, 3 Jul 2017 03:22:56 +0300 Message-ID: <81d3ccde-1796-78e7-ea78-701787ab96c4@yandex.ru> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1499041457 13321 195.159.176.226 (3 Jul 2017 00:24:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Jul 2017 00:24:17 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Thunderbird/54.0 Cc: alexanderm@web.de, 27427@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 03 02:24: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 1dRp9u-00030R-0y for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jul 2017 02:24:10 +0200 Original-Received: from localhost ([::1]:59790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRp9x-0002Vm-MT for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Jul 2017 20:24:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRp9r-0002Vg-A2 for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 20:24:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRp9m-0000ZC-Bt for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 20:24:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46572) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRp9m-0000Yo-8O for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 20:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dRp9l-0004dU-SH for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2017 20:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jul 2017 00:24: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.149904138617750 (code B ref 27427); Mon, 03 Jul 2017 00:24:01 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 3 Jul 2017 00:23:06 +0000 Original-Received: from localhost ([127.0.0.1]:49249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRp8s-0004cE-Jb for submit@debbugs.gnu.org; Sun, 02 Jul 2017 20:23:06 -0400 Original-Received: from mail-wm0-f41.google.com ([74.125.82.41]:37432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRp8r-0004bW-EV for 27427@debbugs.gnu.org; Sun, 02 Jul 2017 20:23:05 -0400 Original-Received: by mail-wm0-f41.google.com with SMTP id i127so92456641wma.0 for <27427@debbugs.gnu.org>; Sun, 02 Jul 2017 17:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=w3Ufwzx+0RLazv1qpiQqg+OOlN9LALOBE7vneg+/4S4=; b=co4fHY45/LA1LZaFfPRFg2glIhQnh+zezM1NqTKlnez6vCLuNtn3hyXdfXctFrhglZ +tfciA3Xh1aeoQJYknbalIrPOdI7aCfRqBuu9ovh/Am2cUt0lyQslJqw/ctPx9JyLYoh MTVC+O2GW5NR7iUeM62OcGIctKzGVEBoU4LnN2uM9BKqrQMMD4my5qsuboA4UKLbOB4Y 44x50nDQJW8tPjc7WdgsVj744hXF1I0t4XmISwPW2HggNotTE2ClJfsjxvqKX/99Ol5Y nolBE0hpbkITPYzft6jLkAY18tWhEV2l1UWSoocp/rOKMNqVgC0qNZ5B0N1n4eq868hI dGUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w3Ufwzx+0RLazv1qpiQqg+OOlN9LALOBE7vneg+/4S4=; b=Xi5YVBOJW4Ozwrg9x8hxXUghntXPhF1tUSPzAqCRn1Ky3XJvqI/Z3YQZY+qOa6H0Bz wJwB2IJ2gcoXnT15sHArey9l1KaOIjkIfHUy9RtMFun5ozTGze7R19J4XY4mRBu4Vk27 FS39/2pt8LEvM/sfwMvxPc3gwh884/LcBQ+FvLa3GQ51fvL8md5//NYP6uqdE8UmKHjk eZWkw+DzpPLowJDsdHYnNB42FxvbyufhGuD360hXntOPRSqLl4UKGKQI1K7M+Nh+oclm hUcqp0foFa48oBxQ32n3/VKOd267IlcDDS8OpSACZilChK4sE82xUQ7Lyo1MUVbgd11k aGiw== X-Gm-Message-State: AIVw113tMvaW8c+uHsXAWUUPMFrTNpYNY62m0h8fjySZ5skGK4b/EWzs p7N+XPScxdIJIw== X-Received: by 10.28.211.20 with SMTP id k20mr1392719wmg.123.1499041379515; Sun, 02 Jul 2017 17:22:59 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id e131sm5527273wmd.28.2017.07.02.17.22.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jul 2017 17:22:58 -0700 (PDT) In-Reply-To: <8360faq33g.fsf@gnu.org> Content-Language: en-US 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:134107 Archived-At: 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.