all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#27734: 26.0.50; display-line-numbers: allow to set alternate face for multiples of N
@ 2017-07-17 14:38 Yuri D'Elia
  2019-10-06 18:56 ` Juanma Barranquero
  0 siblings, 1 reply; 2+ messages in thread
From: Yuri D'Elia @ 2017-07-17 14:38 UTC (permalink / raw)
  To: 27734

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#27734: 26.0.50; display-line-numbers: allow to set alternate face for multiples of N
  2017-07-17 14:38 bug#27734: 26.0.50; display-line-numbers: allow to set alternate face for multiples of N Yuri D'Elia
@ 2019-10-06 18:56 ` Juanma Barranquero
  0 siblings, 0 replies; 2+ messages in thread
From: Juanma Barranquero @ 2019-10-06 18:56 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: 27734-done

[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]

Implemented by this commit:

commit 8de2e69f021b5b2920a07d82c9869bb394171d41
 Author: Juanma Barranquero <lekktu@gmail.com>
 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) <display-line-numbers-major-tick>
     <display-line-numbers-major-tick>: Defvar new options.
     (syms_of_xdisp) <line-number-major-tick, line-number-minor-tick>:
     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 <rpluim@gmail.com>

[-- Attachment #2: Type: text/html, Size: 1466 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-06 18:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 14:38 bug#27734: 26.0.50; display-line-numbers: allow to set alternate face for multiples of N Yuri D'Elia
2019-10-06 18:56 ` Juanma Barranquero

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.