]> git.eshelyaron.com Git - emacs.git/commit
Support a separate face for displaying the current line's number
authorEli Zaretskii <eliz@gnu.org>
Sat, 24 Jun 2017 12:45:23 +0000 (15:45 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 24 Jun 2017 12:45:23 +0000 (15:45 +0300)
commit71a7294d0a775a8969ec077eb3633da6bdad7c62
tree7ba8cad1e5ace7421e0412db94e184e82e0bc42b
parentfa5e84cccd31cf94074255180d6ff3a44d4f8f89
Support a separate face for displaying the current line's number

* lisp/faces.el (line-number-current-line): New face.

* src/xdisp.c (syms_of_xdisp) <line-number-current-line>: New
symbol.
(try_window_id, try_cursor_movement): Disable these optimizations
when the line-number-current-line face is different from
line-number face.
(maybe_produce_line_number): Display the current line in the
line-number-current-line face, if it's different from line-number.
lisp/faces.el
src/xdisp.c