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: Thu, 22 Jun 2017 01:41:15 +0300 Message-ID: <4c4b873b-2bec-1c12-82f5-325b558bea93@yandex.ru> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1498084935 14890 195.159.176.226 (21 Jun 2017 22:42:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2017 22:42:15 +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 Thu Jun 22 00:42: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 1dNoK9-0003Ul-Ib for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jun 2017 00:42:09 +0200 Original-Received: from localhost ([::1]:56217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNoKD-00081g-6E for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jun 2017 18:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNoK6-00081b-VA for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 18:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNoK2-0004mF-RP for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 18:42:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNoK2-0004m6-O7 for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 18:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dNoK2-0000Aw-Do for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 18:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jun 2017 22:42: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.1498084886631 (code B ref 27427); Wed, 21 Jun 2017 22:42:02 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 21 Jun 2017 22:41:26 +0000 Original-Received: from localhost ([127.0.0.1]:60358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNoJS-0000A7-02 for submit@debbugs.gnu.org; Wed, 21 Jun 2017 18:41:26 -0400 Original-Received: from mail-wr0-f172.google.com ([209.85.128.172]:36010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNoJQ-00009u-GH for 27427@debbugs.gnu.org; Wed, 21 Jun 2017 18:41:24 -0400 Original-Received: by mail-wr0-f172.google.com with SMTP id c11so98491649wrc.3 for <27427@debbugs.gnu.org>; Wed, 21 Jun 2017 15:41:24 -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=PZ9sG31RghI8jYtARddQmf5KJnbtvmOOxKYUc8dHIP8=; b=BiR7Apa4rf+Uc+2ISKknUQQEDZ4fzBvhgQ0kYd/BykPuHvHmWrpAuh7UEKFxCogMV8 9D4FGxhdg+RTlaO2Y8AGm6jjYSoA4w4FF5yH1o8gAGJ2ymmCWVECNuHgqP3AMaDYCG6y e6eWdmTvqPtFSYSR1Ps8FGr9xYWA8Ln0NvD6CpaJAun2vNQn53eTDIUgK27WQxNWw/im rJvZqO+k1GRpto7CUQoKqUifYFKE/7skzbmLsHj+qMRbI9TPg9O8FEp5nBpZiuv1jYfe 5Uzg1woTWdWF9zD4WX3WdOaFCMQnUTtWz9j6i0QE5tILHs+XhzQiVS/kCvVD7POjdkfF 73Lg== 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=PZ9sG31RghI8jYtARddQmf5KJnbtvmOOxKYUc8dHIP8=; b=NRsOHaUOXEFnpQ1+oJMwfnTgLTBNv91nZQEjvwNhoTfsneuVBxsU7+N0yW/wdBmOjS SzytX1mH53oDBG1wJk9lh8/bPeBYDPuarqBeklqQobe5EZCheIwLPB6hY79m0otxb5Lw VmW/5sWBAhihoQlPP6MetuK2eIVuCbRWmwhR7YXwwFxQvwSWRGKjfVZKj/Iq0vyJ5V9D XvqZArvgctppeIpWxU60NOdqAfrJaKm/fH5u2Q1ii/cs92c49t2F05Em0+iohN4SRRF9 siQFoUnKuPHx0rn5RB+l90n2OtvYCBI44uib2j/xU6a/8aGC4iDh9JDiQbee4uL4Debw nhFA== X-Gm-Message-State: AKS2vOxnZrh+RtMSkPCdnM22SViLIRATeIFesTHJKhXsjgomyBIx8tzd J5ugmPu0kttzz2G2ptM= X-Received: by 10.28.138.194 with SMTP id m185mr8085236wmd.86.1498084878483; Wed, 21 Jun 2017 15:41:18 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id g20sm74039wmd.2.2017.06.21.15.41.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 15:41:17 -0700 (PDT) In-Reply-To: <83tw39urzq.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:133808 Archived-At: On 6/21/17 9:15 PM, Eli Zaretskii wrote: > Or do you just assume the column there is > zero? Yep! And there are zero outstanding bug reports related to this. > What I had in mind is to come up with a solution that will work the > same with line-prefix specified in any way we support. Then you won't > need to put the line-prefix property on the company overlay. I'm saying it's not easy, and I'm not brimming with ideas. Can't we put native line numbering outside of the window bounds? Like linum and nlinum do. > Btw, can you remind me why we don't use pop-up menus for company > popups? Event handing and theming issues (at least with GUI frames). - GUI menus have only two colors: background and foreground (and maybe "inactive"). Not sure about the terminal mode menus. - Menus take over the event loop. IIRC you suggested a way to get around this, but that doesn't solve the previous problem anyway. IIUC we've settled on using chromeless frames for the popup. It seems Martin is cooking something in this direction (almost ready?), but I haven't tried using them. And that would take some work. Last I checked, Clément was interested, but no results yet. > Could be. Can I seduce you to try the line-numbers branch? ;-) Consider me seduced. I'm seeing the same behavior as what Alexander reported. There are two problems: 1. The first visual line containing the popup has the line number at its beginning. And as such, the popup line is shifted to the right. 2. The rest don't have the line numbers before them, so they are positioned correctly. This may or may not be considered a problem (there's probably nothing we can do about the lack of numbers), but the inconsistency between the different popup lines seems like it would require some special handling in the code. And whatever that additional code would do, it would have to be reconciled with line-prefix as well, so as not to make things worse.