From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47893: 27.1; `display-line-numbers-mode`, line numbers hidden with multiline overlays Date: Mon, 19 Apr 2021 18:29:28 +0300 Message-ID: <83fszms36v.fsf@gnu.org> References: <83h7k2s4rx.fsf@gnu.org> <4774d5f2-f8d3-bdc5-d315-03dcca400cb5@daniel-mendler.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29699"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47893-done@debbugs.gnu.org To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 19 17:30:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYVqr-0007Zm-05 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Apr 2021 17:30:17 +0200 Original-Received: from localhost ([::1]:39040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYVqq-00051X-07 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Apr 2021 11:30:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYVqd-0004zZ-EN for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 11:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYVqd-0007uG-1V for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 11:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYVqc-0001Dy-QS for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2021 11:30:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Apr 2021 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47893 X-GNU-PR-Package: emacs Mail-Followup-To: 47893@debbugs.gnu.org, eliz@gnu.org, mail@daniel-mendler.de Original-Received: via spool by 47893-done@debbugs.gnu.org id=D47893.16188461944661 (code D ref 47893); Mon, 19 Apr 2021 15:30:02 +0000 Original-Received: (at 47893-done) by debbugs.gnu.org; 19 Apr 2021 15:29:54 +0000 Original-Received: from localhost ([127.0.0.1]:51747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVqU-0001D6-JN for submit@debbugs.gnu.org; Mon, 19 Apr 2021 11:29:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVqQ-0001Cs-VQ for 47893-done@debbugs.gnu.org; Mon, 19 Apr 2021 11:29:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43204) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYVqL-0007l8-3q; Mon, 19 Apr 2021 11:29:45 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3170 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lYVqK-00073u-2Z; Mon, 19 Apr 2021 11:29:44 -0400 In-Reply-To: <4774d5f2-f8d3-bdc5-d315-03dcca400cb5@daniel-mendler.de> (message from Daniel Mendler on Mon, 19 Apr 2021 17:10:59 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204473 Archived-At: > Cc: 47893@debbugs.gnu.org > From: Daniel Mendler > Date: Mon, 19 Apr 2021 17:10:59 +0200 > > On 4/19/21 4:55 PM, Eli Zaretskii wrote: > > What do you mean by "hidden"? With the above recipe, I see all the > > line numbers starting from 5, as expected. What is "hidden" here? > > When I have a buffer with the following content: > > 1 a > 2 b > 3 c > 4 d > 5 e > 6 f > 7 g > 8 h > 9 i > > And run the given function, I see the following: > > 5 line1 > line2 > line3 > line4 > e > 6 f > 7 g > 8 h > 9 i Right, and this is expected. > I suppose this is expected since the overlay hides all the lines in > between? Yes, exactly. We only show the line numbers for lines that are displayed. Compare with, for example, Org buffers, where we don't show line numbers for lines that are invisible. > You can close this issue then as invalid, since the display line > numbers don't reflect the visual lines but the lines in the buffer. You can have the visual line numbers as well: just set the line-number style to 'visual'. Closing.