From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Colorful line numbers Date: Fri, 22 Jul 2022 16:41:51 +0300 Message-ID: <2aabd319-8e8c-72dd-3143-45de9172dc54@yandex.ru> References: <87leslpow2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35940"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: emacs-devel@gnu.org To: Stefan Monnier , =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 22 15:43:35 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oEswH-00097K-DT for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 15:43:33 +0200 Original-Received: from localhost ([::1]:49788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEswG-0004VV-CO for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 09:43:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEsuv-0002wh-7X for emacs-devel@gnu.org; Fri, 22 Jul 2022 09:42:09 -0400 Original-Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:33578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEsur-0003vd-RI for emacs-devel@gnu.org; Fri, 22 Jul 2022 09:42:08 -0400 Original-Received: by mail-ej1-x633.google.com with SMTP id va17so8725176ejb.0 for ; Fri, 22 Jul 2022 06:41:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=nli03Kd0wDnpu1GBprR7iWWcS7pl8bpatChXHgLBqlc=; b=gA5lzZGpH9wxmfXmgdpE/FC0B22mm8liJW/UReujwrmDXFJI1K7IMckGyE2B9JHwyu ImH/zrcPO5leQrH8A8BqllWbGdOE9bJOHAIWpdWDXDKEfhXiSD+OrhJlumQX7nZDitD3 DdhoKkHzV9MlFd/UnElPSUxB+QH3Cvxk6BIOhZSVbHYY7fvppco368AYp8rHnSERy7V7 uEeWDxwp1R5YSg3QQ8E/pIdLbwJQUuhMX9aPsi033hHipG0W/IY9hDigCojh1SDctBBT YHQF2eV//rI1lR32CSsYzUlnLcfYc5gWFsESMYv+kBlAAUNv2EUVCeTD6OVHzKnW4EcX PFlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=nli03Kd0wDnpu1GBprR7iWWcS7pl8bpatChXHgLBqlc=; b=8BcindMpT4bvTpVSdiVEjFeBzo2ArU/O2Ruo6RHTUhlPxShuDdsyVJ61qgBvHUQp09 Mrimrqwj6JMzM3Qb9pT+x+7tajRXvwSeMq3MmSw0oTqsJOwXz1dmAv8k9QEq1dF3DPI7 +EsOLdyLgSryp2F8IODzYtM5FjojYv0e00Q8DqkqzKiGhYOAeSZig3Wzfe1c2FBcTQMG vYKKTO/4GEEuLyrRNCfDo2pxD3Q25zDJft3zRmHj82egHR6GpUufJ26bjnawZklUGwJq SICVjGTGQmgBLNgn/myCycTVpRppRk/ItUxcmXiqdpitoWM9BmD4HDdZN1hKnTLFB2hH cDSg== X-Gm-Message-State: AJIora/aoXUo8TURxpWX4xY+ea9hYnnOJeBSOzZDcMOwLb9Phht2KQ38 b9FpH6DUJlyzWxRPeemwY/8= X-Google-Smtp-Source: AGRyM1tvnpP0+ILP7QVCigwMzzLMEQd/ms0gRCX64mMPnLHprNyPiOf9vF68StowcTNugDeMGGIW8g== X-Received: by 2002:a17:906:9b0a:b0:72b:4fc2:4b07 with SMTP id eo10-20020a1709069b0a00b0072b4fc24b07mr561910ejc.700.1658497314213; Fri, 22 Jul 2022 06:41:54 -0700 (PDT) Original-Received: from [192.168.236.48] ([173.237.64.48]) by smtp.googlemail.com with ESMTPSA id da24-20020a056402177800b0043bbea24595sm2576602edb.31.2022.07.22.06.41.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jul 2022 06:41:53 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=raaahh@gmail.com; helo=mail-ej1-x633.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292434 Archived-At: On 22.07.2022 15:38, Stefan Monnier wrote: >> Also seehttps://debbugs.gnu.org/36472. > Have you tried to add such a feature for `(n)linum-mode`? I didn't: that's not what the diff-hl user was asking for. But I proposed several different technical approaches, every one of which has been rejected so far. And not because of the difficulty of implementation. Not sure how implementing any of them in nlinum would help, given that the primary complaint was about running Lisp. And if we take an alternative approach (display-line-numbers-mode looks up text properties in the buffer to determine which face to use), it also depends on the intricacies of its implementation. E.g. how to reliably redraw when such text properties change.