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: Sun, 25 Jun 2017 17:46:23 +0300 Message-ID: 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> <83shipthve.fsf@gnu.org> <83fueotasd.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 1498402035 5792 195.159.176.226 (25 Jun 2017 14:47:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Jun 2017 14:47: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 Sun Jun 25 16:47:09 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 1dP8oe-0001B5-OR for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Jun 2017 16:47:09 +0200 Original-Received: from localhost ([::1]:42824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP8oj-0002Sk-UL for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Jun 2017 10:47:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP8od-0002Sb-NX for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 10:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dP8oY-0008Jz-Rq for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 10:47:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dP8oY-0008Jp-OO for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 10:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dP8oY-0007cp-Em for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 10:47: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: Sun, 25 Jun 2017 14:47: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.149840199329276 (code B ref 27427); Sun, 25 Jun 2017 14:47:02 +0000 Original-Received: (at 27427) by debbugs.gnu.org; 25 Jun 2017 14:46:33 +0000 Original-Received: from localhost ([127.0.0.1]:37423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dP8o4-0007c8-SR for submit@debbugs.gnu.org; Sun, 25 Jun 2017 10:46:33 -0400 Original-Received: from mail-wr0-f196.google.com ([209.85.128.196]:35317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dP8o3-0007bw-Hc for 27427@debbugs.gnu.org; Sun, 25 Jun 2017 10:46:31 -0400 Original-Received: by mail-wr0-f196.google.com with SMTP id z45so24834535wrb.2 for <27427@debbugs.gnu.org>; Sun, 25 Jun 2017 07:46:31 -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=NWS/zWcS6ZhJBFNgQALi8XEw8AmQpEsyH5L0d60YTzI=; b=dBZ5eQx4jjQzOW0sySB9B9qFW1xkvGVvCDhBo8UmnBCzwFfZNCBgUr8BihBWGnWfWR xSwxXy7RmPq0PYOA+vAX6ihZVbG0MoWIy9A26+vL+Hjd97rH7g/D56cGLzFNZu1NAapC 2QUTnnAfM5Ypi1oWn744/5mN6qzDmP/Z9y3Jd/2SEQViHJep+LEYdfq8dFMK4d0IHlZA lk6m9O84cbeCLRxXuOM3451HdyVHkIrNvqefqPEslOOXn4HoSndpWoERTVMuTElV87gb +Hdlzcvs+fDJunqbj7aQMnEqTHr0RUJVlFkVo+qcW8ggkvOhnuWpeP7lM44g8X2RFwuX Ce6Q== 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=NWS/zWcS6ZhJBFNgQALi8XEw8AmQpEsyH5L0d60YTzI=; b=Hf1NewIQYmvT6SwNKNniHseu47onXTIL2aflPv6gWmDGCbaRQpovOGss81oE53iDSW 9Gn/+iQinKYnQp77S9GAM6XYE7fxDWf6SirfxmSvUSU/AfPF0+kp8VncIH8ZFPthT9Jq bbrHCBOgLh+0t0VuIS3EPhhi6xtGUogacJyipUDqyBrrllSPGAPsUYDBhACZ997YlL6Q sX7v2xfJON+GMxO2dhG8KWVruJ3Qo0s/5d8k5JHL0YN/gVz4XCqYDcFV+fYf7Byy+L7D omqjLvtuetx3azXZecTJRL7U2VtrB/23bMZA38fuZpSR2mq4Cay5Nin4Vh4xS9STz5we YRng== X-Gm-Message-State: AKS2vOz35q/XYDprvyJwwqATFsgQlXwC/uUU8UOqMB9aNynQ9itQrshs PXfrElcEvVSFpQPtrrI= X-Received: by 10.28.203.137 with SMTP id b131mr3625478wmg.50.1498401985566; Sun, 25 Jun 2017 07:46:25 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id 24sm17008211wrw.0.2017.06.25.07.46.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Jun 2017 07:46:25 -0700 (PDT) In-Reply-To: <83fueotasd.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:133878 Archived-At: On 6/25/17 5:13 PM, Eli Zaretskii wrote: > The displayed line number reflects the line of the buffer positions > corresponding to what's on that screen line. If none of the buffer > positions appear on that screen line, it's the line of the buffer > position(s) "covered" by the display string/overlay which generates > the display. It didn't look like this in the previous version. Might be considered a bit annoying, repeating the number several times. BTW, by that logic, the last empty line should have a number as well: it does correspond to a buffer position. > If what you see doesn't fit this description, please show a > screenshot, and describe or show the code which puts the overlay that > causes the display. It does fit the description. > I'm not sure I understand: are you saying that you've put the property > in that case and it didn't have the expected effect? Yes. Although I half expected it to have no effect in this case. > Or are you > saying that you don't have a position to put the property in that > case? Also true, probably. > If the former, can you tell on which buffer position you put > the property, and perhaps show a simple reproducer? (with-current-buffer (get-buffer-create "popup-test.el") (setq display-line-numbers t) (insert "aaaaaaa aaaaaaa aaaaaaa aaaaaaa aaaaaaa ") (let ((ov (make-overlay (point-max) (point-max)))) (overlay-put ov 'after-string "bbbbbb\nbbbbbb\n") (overlay-put ov 'display-line-numbers-disable t))) After that, the buffer popup-test.el shows the "bbbbbb" lines prepended with the empty line number columns. I'd rather they weren't there.