From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers landed on master Date: Mon, 10 Jun 2019 17:33:27 +0200 Message-ID: <87h88x4fqw.fsf@wavexx.thregr.org> References: <83k23jl5ra.fsf@gnu.org> <87bmolqryw.fsf@wavexx.thregr.org> <83blz5bh2m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="142087"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.3.1; emacs 27.0.50 Cc: Juanma Barranquero , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 10 17:36:26 2019 Return-path: Envelope-to: ged-emacs-devel@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 1haMLS-000ahl-8W for ged-emacs-devel@m.gmane.org; Mon, 10 Jun 2019 17:36:26 +0200 Original-Received: from localhost ([::1]:47750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haMLL-0003Ky-Cg for ged-emacs-devel@m.gmane.org; Mon, 10 Jun 2019 11:36:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50217) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haMIt-0001Ql-J7 for emacs-devel@gnu.org; Mon, 10 Jun 2019 11:33:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haMIs-0002nA-M3 for emacs-devel@gnu.org; Mon, 10 Jun 2019 11:33:47 -0400 Original-Received: from erc.thregr.org ([2001:41c9:1:41f::63]:37838) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1haMIq-0002ft-TT; Mon, 10 Jun 2019 11:33:45 -0400 Original-Received: from [2a02:27e8:ffff:10::3] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1haMIb-0004f8-Er (envelope-from ); Mon, 10 Jun 2019 17:33:29 +0200 In-reply-to: <83blz5bh2m.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:41c9:1:41f::63 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237408 Archived-At: On Mon, Jun 10 2019, Eli Zaretskii wrote: >> (The image shows both my customized linum.el numbers and the new >> native line numbers, for comparison.) > > If the issue is to have an option that will only display every Nth > line number, maybe we can do that without allowing a function call. Hiding would be too much for me. But the ability to change the :foreground property for a multiple of N should be equivalent. But as a side note: is this really that impactful to add a regular hook? Surely this would (?) be run only for visible lines, of which you don't have many. If you restrict to certain face properties such as face colors, you can ensure there's no change in width. But it's just speculation on my part, I didn't look at how redisplay is handled.