]> git.eshelyaron.com Git - emacs.git/commit
Initial version of native display of line numbers
authorEli Zaretskii <eliz@gnu.org>
Fri, 16 Jun 2017 19:44:48 +0000 (22:44 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 16 Jun 2017 19:44:48 +0000 (22:44 +0300)
commitdaf78963ee96484df1ecb0c10e7c0040d7b544a5
tree645bebe8802594002507f2d71dbd25ccded9cc24
parent7a2038d7c887e4fa08a91950a7494d1dd20c39e1
Initial version of native display of line numbers

* src/xdisp.c (syms_of_xdisp) <display-line-numbers>: New
buffer-local variable.
Include <math.h>.
(maybe_produce_line_number): New function.
(DISP_INFINITY): Rename from INFINITY, since math.h defines INFINITY.
(try_window_reusing_current_matrix): Don't use this method when
display-line-numbers is in effect.
* src/dispextern.h (struct it): New members 'lnum'.
src/dispextern.h
src/xdisp.c