From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers landed on master Date: Thu, 03 Oct 2019 11:10:02 +0200 Message-ID: References: <834l4xbfmp.fsf@gnu.org> <87ef414dfn.fsf@wavexx.thregr.org> <83o9359w3l.fsf@gnu.org> <83eezycce5.fsf@gnu.org> <87muekj0i9.fsf@wavexx.thregr.org> <87d0fgagjl.fsf@gnus.org> <20191001225254.mwjnxlynjdc3mz7y@Ergus> <83lfu389vn.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="217869"; mail-complaints-to="usenet@blaine.gmane.org" Cc: wavexx@thregr.org, Lars Magne Ingebrigtsen , Eli Zaretskii , spacibba@aol.com, Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 03 11:10:20 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 1iFx7p-000uWB-QM for ged-emacs-devel@m.gmane.org; Thu, 03 Oct 2019 11:10:18 +0200 Original-Received: from localhost ([::1]:33990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFx7o-0000Oq-I9 for ged-emacs-devel@m.gmane.org; Thu, 03 Oct 2019 05:10:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46110) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFx7g-0000M1-FH for emacs-devel@gnu.org; Thu, 03 Oct 2019 05:10:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFx7e-0002L3-VX for emacs-devel@gnu.org; Thu, 03 Oct 2019 05:10:07 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:38953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFx7e-0002Hz-Nr; Thu, 03 Oct 2019 05:10:06 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id r3so2096044wrj.6; Thu, 03 Oct 2019 02:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=wOmPdmrfleUF99JmogJO+s5Qf9f3AGp+6qN0dPQ66cA=; b=CrNr0vRtQM/o4Pt3IEDepWzXML3gtlSDRd9UpwfXQiSCNFvRmRquboEgnGTYRzL8uP TixDde+VlPq/JAX96Oil492fLWgDT01goLDnaBwHUgAor7/vrS2RCHHjb5R5tnpsskp3 oIQF6NzUba8qpsTOl+XUIBtOlQ90QOzg86GAblj7yU+LenyZdr9KEJzdhFOacDkhsfeZ /xXrPLLEON9FRAXdv1najX9nAoe0vnIY67jZh132Rwc2MooXowaoNYr9raOD7m+j3DYo txjBmc6AF8E6LeXT3aCVzmy1PmOJ1da0uDjmS9G5C+cHlLp0txn6jujFpxxt1MauXXZZ Y3xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=wOmPdmrfleUF99JmogJO+s5Qf9f3AGp+6qN0dPQ66cA=; b=aJFdPuxSFRt3DRmuJHNrwKw2/pg2tZ2mqYebGjMqJjIkClB7KH2rBuTZ202sjK3SuY kgslWd0fNwRnVReMxZhvG4uZ2IvJWN/OWbn/Y4CpYA7WldgYtqKdc6aPO89E11Q7MNi2 cu0BvJfCs+6xtOgVkkOo4hvE99GdHwk8DwCAbos1Syx2NenYNfL9aGHcEBoWw/15U/zr toaimnwb88QK6gexOdc/ghe2tAAsQbStjaEw3i9K8PY+08Xd4zY1SCqNgn+LQ3Icx5QK kIYlrn/wTEnStzj0Cv18PGIM9LX3Emq+CpuTV8ATdQXiaG/Ej7imiVXB7x3JnamLEaT7 ITPQ== X-Gm-Message-State: APjAAAX4JFM2INbc9Ft61wmXOx1i1JUxS/9wO0Qjk364witaWQWXEAWZ D8W1Rdc3Jwn/pAx9vHwB2x16r5ck/Zs= X-Google-Smtp-Source: APXvYqy0zSpQEqDboOjbkM5Vs2Sl7Zb+vNKF20Y0BnG5kElPigdQcPMZ6I+I6Dk1+hFu6Eu3QAWSTw== X-Received: by 2002:a5d:4a01:: with SMTP id m1mr1788079wrq.343.1570093804703; Thu, 03 Oct 2019 02:10:04 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id w9sm3267972wrt.62.2019.10.03.02.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 02:10:03 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Juanma Barranquero's message of "Thu, 3 Oct 2019 06:11:41 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::429 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:240494 Archived-At: >>>>> On Thu, 3 Oct 2019 06:11:41 +0200, Juanma Barranquero said: Juanma> +showing point. Additional faces @code{line-number-Nth-line} and Juanma> +@code{line-number-Mth-line} can be used to highlight the line number Juanma> +of lines multiple of certain numbers which can be customized via the Juanma> +variables @code{display-line-numbers-Nth-line} and Juanma> +@code{display-line-numbers-Mth-line} respectively. This sentence blew my stack. How about Additional faces @code{line-number-Nth-line} and @code{line-number-Mth-line} can be used to highlight the line numbers of lines which are a multiple of certain numbers. Customize @code{display-line-numbers-Nth-line} and @code{display-line-numbers-Mth-line} respectively to set those numbers. One other point: if N is a multiple of M, then lines numbers which are multiples of both N and M get the 'N' face applied, which implies that you should set N > M in that situation to avoid confusion. Would it make sense to document that? (enforcing it via custom would be overkill, I think). Robert