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#50506: 28.0.50; display-line-numbers equivalent for linum-format? Date: Sat, 11 Sep 2021 14:53:49 +0300 Message-ID: <83o88zgwfm.fsf@gnu.org> References: <87czpgc1yb.fsf@noaa.gov> <83fsucipdz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2640"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50506@debbugs.gnu.org To: Michael Gallagher - NOAA Affiliate Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 11 13:55:12 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 1mP1bE-0000Un-2Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 13:55:12 +0200 Original-Received: from localhost ([::1]:59652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mP1bB-0005Zi-Pb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 07:55:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP1b4-0005ZE-Eh for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 07:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mP1b4-00057u-74 for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 07:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mP1b4-0007ZV-3A for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 07:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Sep 2021 11:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50506 X-GNU-PR-Package: emacs Original-Received: via spool by 50506-submit@debbugs.gnu.org id=B50506.163136125129036 (code B ref 50506); Sat, 11 Sep 2021 11:55:02 +0000 Original-Received: (at 50506) by debbugs.gnu.org; 11 Sep 2021 11:54:11 +0000 Original-Received: from localhost ([127.0.0.1]:39626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP1aF-0007YG-AW for submit@debbugs.gnu.org; Sat, 11 Sep 2021 07:54:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP1aE-0007Y2-37 for 50506@debbugs.gnu.org; Sat, 11 Sep 2021 07:54:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59970) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mP1a6-0004Th-Gj; Sat, 11 Sep 2021 07:54:02 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4392 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP1a4-0001Zc-Mh; Sat, 11 Sep 2021 07:54:02 -0400 In-Reply-To: (message from Michael Gallagher - NOAA Affiliate on Fri, 10 Sep 2021 10:00:47 -0600) 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:214053 Archived-At: > From: Michael Gallagher - NOAA Affiliate > Date: Fri, 10 Sep 2021 10:00:47 -0600 > Cc: 50506@debbugs.gnu.org > > Thanks for taking the time to respond. The separator character I use is simply the 'pipe' character, "|". The > purpose for me is to clearly delineate the text/code from the line numbers in a way that makes it easier to > grok the text being displayed. My brain sees the numbers as part of the code with the current formatting of > display-line-numbers, but maybe I'm uniquely incapable. If the intent is to provide a new user option to display such a character after the number, I don't object. But please note the following subtle aspects of such a change: . since you'd probably want to make the character customizable, and non-ASCII characters are sometimes desired, there will be a need to make sure such a non-ASCII character can be displayed before honoring the customization . on some displays, the pipe character "|" isn't tall enough, so the vertical line is not contiguous . there's a problem with doing this for right-to-left lines, because the character should then be before the number, not after it, but (due to complicated reasons I will not describe here) when the line number is prepared for display, the display code doesn't necessarily know whether the line is R2L or L2R