]> git.eshelyaron.com Git - emacs.git/commit
Initial support for visually-relative line numbers
authorEli Zaretskii <eliz@gnu.org>
Mon, 26 Jun 2017 20:20:49 +0000 (23:20 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 26 Jun 2017 20:20:49 +0000 (23:20 +0300)
commitbeb95a8f890da611acc1a4422211deafe512d87d
tree36773cd5f9f5fab4ef3c204dac1397971c4bceab
parent67c8a219e670eed317acdffc68a2888e2c557e79
Initial support for visually-relative line numbers

Works very slowly.

* src/xdisp.c (display_count_lines_visually): New function.
(maybe_produce_line_number): Support 'visual' mode of line-number
display.
* src/xdisp.c (maybe_produce_line_number): Update IT's metrics
also when glyph_row is NULL.  This is important for move_it_*
functions.
(syms_of_xdisp) <display-line-number-width>: Now buffer-local.
(try_window_id, redisplay_window, try_cursor_movement): For
'visual' line-number display, disable the same redisplay
optimizations as for 'relative'.

* lisp/cus-start.el (standard): Add new value for the
customization form of display-line-numbers.
lisp/cus-start.el
src/xdisp.c