diff options
| author | Juanma Barranquero | 2019-10-09 12:49:39 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2019-10-09 12:49:39 +0200 |
| commit | 76a9f03ca629d3e5a596c3aa7f62a4649ac2ae8a (patch) | |
| tree | b6751a7a1b7b184e28e66f20395d65c984daaf57 /etc | |
| parent | 4b06250ef1fe98a766938862912383d2ee051dfb (diff) | |
| download | emacs-76a9f03ca629d3e5a596c3aa7f62a4649ac2ae8a.tar.gz emacs-76a9f03ca629d3e5a596c3aa7f62a4649ac2ae8a.zip | |
Implement offsets for absolute line numbers
* src/xdisp.c (syms_of_xdisp) <display-line-numbers-offset>:
New variable to add an offset to absolute line numbers.
(syms_of_xdisp) <display-line-numbers>: Mention it in docstring.
(maybe_produce_line_number): Use it.
* doc/emacs/display.texi (Display Custom): Document it.
* etc/NEWS (value): Announce it.
* lisp/frame.el: Add `display-line-numbers-offset' to list of
variables which should trigger redisplay of the current buffer.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -560,11 +560,15 @@ now prompts the user for the directory containing the desktop file. | |||
| 560 | 560 | ||
| 561 | +++ | 561 | +++ |
| 562 | ** display-line-numbers-mode | 562 | ** display-line-numbers-mode |
| 563 | |||
| 563 | *** New faces 'line-number-major-tick' and 'line-number-minor-tick', | 564 | *** New faces 'line-number-major-tick' and 'line-number-minor-tick', |
| 564 | and customizable variables 'display-line-numbers-major-tick' and | 565 | and customizable variables 'display-line-numbers-major-tick' and |
| 565 | 'display-line-numbers-minor-tick' can be used to highlight the line | 566 | 'display-line-numbers-minor-tick' can be used to highlight the line |
| 566 | numbers of lines multiple of certain numbers. | 567 | numbers of lines multiple of certain numbers. |
| 567 | 568 | ||
| 569 | *** New variable `display-line-numbers-offset', when non-zero, adds | ||
| 570 | an offset to absolute line numbers. | ||
| 571 | |||
| 568 | +++ | 572 | +++ |
| 569 | ** winner | 573 | ** winner |
| 570 | *** A new variable, 'winner-boring-buffers-regexp', has been added. | 574 | *** A new variable, 'winner-boring-buffers-regexp', has been added. |