From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36472: 27.0.50; Convey information by showing line numbers using different colors? Date: Tue, 02 Jul 2019 17:30:52 +0300 Message-ID: <83blycecf7.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171634"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36472@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 02 16:33:37 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hiJqj-000iXe-81 for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jul 2019 16:33:37 +0200 Original-Received: from localhost ([::1]:53998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiJqi-0002H7-4f for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jul 2019 10:33:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49607) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiJpH-0001dw-DP for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2019 10:32:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiJpG-0004Cs-7u for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2019 10:32:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38803) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hiJpC-000492-Jo for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2019 10:32:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hiJpC-0006ou-Bq for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2019 10:32: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: Tue, 02 Jul 2019 14:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36472 X-GNU-PR-Package: emacs Original-Received: via spool by 36472-submit@debbugs.gnu.org id=B36472.156207788026167 (code B ref 36472); Tue, 02 Jul 2019 14:32:02 +0000 Original-Received: (at 36472) by debbugs.gnu.org; 2 Jul 2019 14:31:20 +0000 Original-Received: from localhost ([127.0.0.1]:47624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiJoU-0006nx-GJ for submit@debbugs.gnu.org; Tue, 02 Jul 2019 10:31:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiJoS-0006nk-Hf for 36472@debbugs.gnu.org; Tue, 02 Jul 2019 10:31:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hiJoK-0003R6-Ib; Tue, 02 Jul 2019 10:31:10 -0400 Original-Received: from [176.228.60.248] (port=4491 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hiJoI-0005MP-Ml; Tue, 02 Jul 2019 10:31:08 -0400 In-reply-to: (message from Dmitry Gutov on Tue, 2 Jul 2019 14:14:15 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:161961 Archived-At: > From: Dmitry Gutov > Date: Tue, 2 Jul 2019 14:14:15 +0300 > > There is a feature request for diff-hl: to indicate the VCS status of > different lines by using the colors of the line numbers, instead of > fringe or margin indicators. > > (https://github.com/dgutov/diff-hl/issues/124) > > I think this is not possible yet, but if there was a hook to choose how > a number is displayed, I'd be able to use it. I wouldn't hold my breath, because this will mean any display routine that calculates layout will have to call some non-trivial Lisp, possibly even running a subprocess. Not a very good design, IMO. Why don't you show these indicators on the fringes or in the display margins? That's what those features are there for, and native line numbers keep their claws off the margins for that very reason.