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, 29 Jun 2017 20:55:27 +0300 Message-ID: <31d65b4f-72b1-1095-d317-3e95eaa491a4@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> <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> <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> <067578d7-0059-e65a-93d9-ad561664e08b@yandex.ru> <83fueircjf.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 1498758973 3479 195.159.176.226 (29 Jun 2017 17:56:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2017 17:56:13 +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 29 19:56:06 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 1dQdfh-0000Vg-TM for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jun 2017 19:56:06 +0200 Original-Received: from localhost ([::1]:40645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQdfn-00026R-Ak for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jun 2017 13:56:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQdfh-00026A-U7 for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 13:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQdfe-0005Mb-Pm for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 13:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQdfe-0005MI-Kz for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 13:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQdfe-0004N5-Bn for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 13:56: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: Thu, 29 Jun 2017 17:56: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.149875894016772 (code B ref 27427); Thu, 29 Jun 2017 17:56:02 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 29 Jun 2017 17:55:40 +0000 Original-Received: from localhost ([127.0.0.1]:44978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQdfI-0004MS-JI for submit@debbugs.gnu.org; Thu, 29 Jun 2017 13:55:40 -0400 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:34820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQdfH-0004MF-0i for 27427@debbugs.gnu.org; Thu, 29 Jun 2017 13:55:39 -0400 Original-Received: by mail-wm0-f53.google.com with SMTP id w126so89320096wme.0 for <27427@debbugs.gnu.org>; Thu, 29 Jun 2017 10:55:38 -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=Jc3Vsh88ZGsIQv9soiI9am2els4uDvHi//VJnM99qOc=; b=rdXwwoEZ3scnQHW6RMuqPzspAyL/DDwo6oPY9+ox9FQtvbDRp3RYaY9PrEYKZjMGaz g7F78fRY2VqnclyztGObf5ekkHS90mMP2KMLM8a4p/w4uXe2aFM/MN4hYLshItffHL9C +H6Owj0++WQb2cAaFjyqnwqrStkmt0KNPQFfpcBuBtSkAXo/72zYA+vIu3kUAxK7+HFn HsqHxYuwsXWSNjPY5VRHzKWGQGiOLkpWqMSyOMJhmRTyRqE7/ksFn3dAuZIWXaoOK3yT hc/60HSsCJZxbxc06tCsY8+SwfuRsIUj4Gekw5CC5n+aHnpotgEDu2jJZ16MfDi0L6ra bAFw== 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=Jc3Vsh88ZGsIQv9soiI9am2els4uDvHi//VJnM99qOc=; b=OskTRch+15OwLAimwMWwl1IBuY17XByogI+ccfPX8t5aElhMEYL6h4xh1VmCNm2+SH raaUKmaPfVNr+1rXD5xeHwcOpG+jVF3R0S3GDsXQLcAfd9QMl6SCC6UtfWr3e/K90YJC DCh8TgVGm0EVutP5etTK+i5ZeCxv8zf42uZoac1VEhwbDkW1yWLOeDdJY5/BF6HrYxbL iXVRm6ifq260uFFh35OfvCE2U28zm/8AJJhH97UplXvegt5WqZqLona3gUZNoTmci4u+ WpvOq0150kaEwfPf+Zv47qiGJ+OmhvsDR1T0GPrY/8Y7QhifjSxAA4x+TnirUCZDVfHp Uktg== X-Gm-Message-State: AIVw111vIAxhAO57NVVKCrjQIj2bNPVXLqX4WyC8yvZLWChuk6iBxiR9 nCeo5Rkao+m/NQ== X-Received: by 10.28.93.1 with SMTP id r1mr2944993wmb.26.1498758932944; Thu, 29 Jun 2017 10:55:32 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id l46sm4282986wrl.15.2017.06.29.10.55.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jun 2017 10:55:31 -0700 (PDT) In-Reply-To: <83fueircjf.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:134036 Archived-At: On 6/29/17 7:20 PM, Eli Zaretskii wrote: >> Different tradeoffs, some different problems, and a lot of common ones >> (like text scaling, images, character widths, etc). > > But all of these are not relevant to TTY frames, right? The `display' issue in `M-x report-emacs-bug' should be just as relevant. And similar stuff. Character widths might be relevant as well in some terminals, but that's hardly something we could fix in Emacs. > Martin is trying very hard to come up with a method to overcome the > fact that Emacs cannot display "rectangular" overlay strings. > Breaking the string into several one-line strings and putting their > overlays at the appropriate buffer positions would solve this problem. Like I said, we have another completion package that does this (but the authors refuse to assign copyright). How will that help with the arithmetics? How is it better than the one-overlay approach for the current situation? >> One-line-per-overlay approach will always work worse in display-heavy >> buffers, for instance. Like the 'M-x report-emacs-bug' one. > > Why would it work worse in that case? Imagine that point is above the "If Emacs crashed..." display overlay. There is no physical line below it where we can put an overlay with the first popup line. I suppose we could replace (propertize "\n" 'display txt) string that is there with a fully made up overlay string, but a) it's less trivial than you probably imagined initially, b) the buffer text below it is going to jump up and down as the popup is shown and hidden. With the one-overlay approach, we ignore that `display' property (so there's empty space there when the popup is displayed), but preserve the height in rows, so the other buffer text is not jumping.