From unknown Sat Aug 16 16:18:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27734: 26.0.50; display-line-numbers: allow to set alternate face for multiples of N Resent-From: Yuri D'Elia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jul 2017 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27734 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 27734@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150030233830337 (code B ref -1); Mon, 17 Jul 2017 14:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jul 2017 14:38:58 +0000 Received: from localhost ([127.0.0.1]:44563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7Ao-0007tF-53 for submit@debbugs.gnu.org; Mon, 17 Jul 2017 10:38:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7Am-0007t1-Ow for submit@debbugs.gnu.org; Mon, 17 Jul 2017 10:38:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7Ag-0005Lw-Nx for submit@debbugs.gnu.org; Mon, 17 Jul 2017 10:38:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dX7Ag-0005Lr-LO for submit@debbugs.gnu.org; Mon, 17 Jul 2017 10:38:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7Af-0000Zc-Nb for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 10:38:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7Aa-0005KK-PB for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 10:38:49 -0400 Received: from erc.thregr.org ([46.43.2.63]:38614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dX7Aa-0005Jx-Ik for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 10:38:44 -0400 Received: from [2a02:27e8:20:9049:56ee:75ff:fec2:8bfb] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1dX7AV-00079X-5W (envelope-from ) for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 16:38:39 +0200 User-agent: mu4e 0.9.19; emacs 26.0.50 From: Yuri D'Elia Date: Mon, 17 Jul 2017 16:38:38 +0200 Message-ID: <87bmojuo0h.fsf@wavexx.thregr.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Severity: wishlist When displaying line numbers using the new `display-line-numbers' feature, we could add a face to be used for each line number that is a multiple of some number N, which could be specified by the user. display-line-numbers-alternate (interger or nil to disable) line-number-alternate (alternative face) When used with line-number-current-line, line-number-current-line obviously takes precedence. From unknown Sat Aug 16 16:18:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Yuri D'Elia Subject: bug#27734: closed (Re: bug#27734: 26.0.50; display-line-numbers: allow to set alternate face for multiples of N) Message-ID: References: <87bmojuo0h.fsf@wavexx.thregr.org> X-Gnu-PR-Message: they-closed 27734 X-Gnu-PR-Package: emacs Reply-To: 27734@debbugs.gnu.org Date: Sun, 06 Oct 2019 18:57:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1570388223-7686-1" This is a multi-part message in MIME format... ------------=_1570388223-7686-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #27734: 26.0.50; display-line-numbers: allow to set alternate face for mult= iples of N which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 27734@debbugs.gnu.org. --=20 27734: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27734 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1570388223-7686-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 27734-done) by debbugs.gnu.org; 6 Oct 2019 18:56:43 +0000 Received: from localhost ([127.0.0.1]:46865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHBhz-0001z2-5p for submit@debbugs.gnu.org; Sun, 06 Oct 2019 14:56:43 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]:40916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHBhx-0001ym-3t for 27734-done@debbugs.gnu.org; Sun, 06 Oct 2019 14:56:41 -0400 Received: by mail-qt1-f176.google.com with SMTP id m61so5077129qte.7 for <27734-done@debbugs.gnu.org>; Sun, 06 Oct 2019 11:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jxZaZzIswai/ocpb5mvUVANEGqU8q6w4QqLpnQFkJPE=; b=GrPZtIkc1Y0Ly9PpjwM/VNCZ7rejlgGmtVWrdfew4GZbi2EQh213etMf/rzN/pE8/k ZZcGLdDK+hssfrqotjdI6Q/5AyrzuKEuMLlS9mI4IYy1Kv57T24CLyyXTjpqGHXQsh2h iRDZhurfJ5VLNUlIGzlnJArkvMEciWj/0w9sgw1kb+O7YaCiJPojk55ZXKI9r37haAt2 lCmIHjfMVHBH7/BrDxKCm7pLoJ1gdmsQXrvHb9rWFlTcGmvwPNqP1hbhiu5bO8l9O7iR wFqOQ9iGbuwxJ5WR7AUGlHeu2jkaGcrU9oHVpDpvjZJMNUOUO7V1mOLcdjLJj/zQq393 KhdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jxZaZzIswai/ocpb5mvUVANEGqU8q6w4QqLpnQFkJPE=; b=XOeRd9cQtOoqWY7B9CHgxdCAbPBdLpL27krjG3mEqrhHv9K6AatMjH3uNuHCaDKFpD t7GxC6B8FS6oca8D8jMBjcswDLQyMRKQw43VYD8GqjYG18NbucPYCwWfTFho5gtkesDa 8oYP6Tyvp09ICmJW/5cm7DzMMoFmQhvMjDcH0jbo2Zo/qtb3yNG0QmjudgDtBTWts61X SxXMw9Lonwk4P3euK9IhCtIvpt302uYrYeL80lkFHki0kREG/c6hdc7pria6txuM22VZ 0drG1CkoZYxP0k8Ljc0l0ohCk7TVQnrl1TGFIJZQOmFMBNcDPuNp8lbdsAMODVb7DNYL QAxg== X-Gm-Message-State: APjAAAWvJ0GtLlD3HiBMmOy9FFMV2wdZCbJfCdHL9xS1Eu3HIxihuGEJ fT8qv1vtxwydDRjPXTtz6NiScquvxhQoVvWdNzOYhISq X-Google-Smtp-Source: APXvYqyRSsu89Dgy+LAkK99oSJKupPwS/37XnzYmm/F6Gl9s2NiCETnxregfA8VMYT91S6rZizgA7tglojp4SKs+ACg= X-Received: by 2002:ad4:5812:: with SMTP id dd18mr22874497qvb.136.1570388195118; Sun, 06 Oct 2019 11:56:35 -0700 (PDT) MIME-Version: 1.0 References: <87bmojuo0h.fsf@wavexx.thregr.org> In-Reply-To: <87bmojuo0h.fsf@wavexx.thregr.org> From: Juanma Barranquero Date: Sun, 6 Oct 2019 20:56:00 +0200 Message-ID: Subject: Re: bug#27734: 26.0.50; display-line-numbers: allow to set alternate face for multiples of N To: "Yuri D'Elia" Content-Type: multipart/alternative; boundary="00000000000087934e0594427e89" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 27734-done Cc: 27734-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000087934e0594427e89 Content-Type: text/plain; charset="UTF-8" Implemented by this commit: commit 8de2e69f021b5b2920a07d82c9869bb394171d41 Author: Juanma Barranquero Date: 2019-10-06 20:53:18 +0200 Set alternate faces for some line numbers (bug#27734) * lisp/faces.el (line-number-major-tick, line-number-minor-tick): New faces. * lisp/cus-start.el (display-line-numbers-major-tick) (display-line-numbers-minor-tick): Add customization info. * lisp/frame.el: Add `display-line-numbers-major-tick' and `display-line-numbers-minor-tick' to list of variables which should trigger redisplay of the current buffer. * src/xdisp.c (syms_of_xdisp) : Defvar new options. (syms_of_xdisp) : Defsym new faces. (maybe_produce_line_number): Use new faces for line numbers that are multiple of `display-line-numbers-major-tick' and `display-line-numbers-minor-tick'. * etc/NEWS (value): Announce new feature. * doc/emacs/display.texi (Display Custom): Describe it. Wording by Robert Pluim --00000000000087934e0594427e89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Implemented by this commit:

commi= t 8de2e69f021b5b2920a07d82c9869bb394171d41
=C2=A0Author: Juanma Barranqu= ero <lekktu@gmail.com>
=C2= =A0Date: =C2=A0 2019-10-06 20:53:18 +0200

=C2=A0 =C2=A0 =C2=A0Set al= ternate faces for some line numbers (bug#27734)

=C2=A0 =C2=A0 =C2=A0= * lisp/faces.el (line-number-major-tick, line-number-minor-tick):
=C2=A0= =C2=A0 =C2=A0New faces.
=C2=A0 =C2=A0 =C2=A0* lisp/cus-start.el (displa= y-line-numbers-major-tick)
=C2=A0 =C2=A0 =C2=A0(display-line-numbers-min= or-tick): Add customization info.
=C2=A0 =C2=A0 =C2=A0* lisp/frame.el: A= dd `display-line-numbers-major-tick' and
=C2=A0 =C2=A0 =C2=A0`displa= y-line-numbers-minor-tick' to list of variables which
=C2=A0 =C2=A0 = =C2=A0should trigger redisplay of the current buffer.

=C2=A0 =C2=A0 = =C2=A0* src/xdisp.c (syms_of_xdisp) <display-line-numbers-major-tick>=
=C2=A0 =C2=A0 =C2=A0<display-line-numbers-major-tick>: Defvar new= options.
=C2=A0 =C2=A0 =C2=A0(syms_of_xdisp) <line-number-major-tick= , line-number-minor-tick>:
=C2=A0 =C2=A0 =C2=A0Defsym new faces.
= =C2=A0 =C2=A0 =C2=A0(maybe_produce_line_number): Use new faces for line num= bers
=C2=A0 =C2=A0 =C2=A0that are multiple of `display-line-numbers-majo= r-tick' and
=C2=A0 =C2=A0 =C2=A0`display-line-numbers-minor-tick'= ;.

=C2=A0 =C2=A0 =C2=A0* etc/NEWS (value): Announce new feature.
= =C2=A0 =C2=A0 =C2=A0* doc/emacs/display.texi (Display Custom): Describe it.= =C2=A0 Wording by
=C2=A0 =C2=A0 =C2=A0Robert Pluim <rpluim@gmail.com>
--00000000000087934e0594427e89-- ------------=_1570388223-7686-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jul 2017 14:38:58 +0000 Received: from localhost ([127.0.0.1]:44563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7Ao-0007tF-53 for submit@debbugs.gnu.org; Mon, 17 Jul 2017 10:38:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7Am-0007t1-Ow for submit@debbugs.gnu.org; Mon, 17 Jul 2017 10:38:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7Ag-0005Lw-Nx for submit@debbugs.gnu.org; Mon, 17 Jul 2017 10:38:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dX7Ag-0005Lr-LO for submit@debbugs.gnu.org; Mon, 17 Jul 2017 10:38:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7Af-0000Zc-Nb for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 10:38:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7Aa-0005KK-PB for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 10:38:49 -0400 Received: from erc.thregr.org ([46.43.2.63]:38614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dX7Aa-0005Jx-Ik for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 10:38:44 -0400 Received: from [2a02:27e8:20:9049:56ee:75ff:fec2:8bfb] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1dX7AV-00079X-5W (envelope-from ) for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 16:38:39 +0200 User-agent: mu4e 0.9.19; emacs 26.0.50 From: Yuri D'Elia To: bug-gnu-emacs@gnu.org Subject: 26.0.50; display-line-numbers: allow to set alternate face for multiples of N Date: Mon, 17 Jul 2017 16:38:38 +0200 Message-ID: <87bmojuo0h.fsf@wavexx.thregr.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Severity: wishlist When displaying line numbers using the new `display-line-numbers' feature, we could add a face to be used for each line number that is a multiple of some number N, which could be specified by the user. display-line-numbers-alternate (interger or nil to disable) line-number-alternate (alternative face) When used with line-number-current-line, line-number-current-line obviously takes precedence. ------------=_1570388223-7686-1--