]> git.eshelyaron.com Git - emacs.git/commit
Add new minor mode `header-line-indent-mode'
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 May 2022 19:24:12 +0000 (21:24 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 May 2022 19:24:12 +0000 (21:24 +0200)
commitdea41d4c24d0d33e359cbfe34054d9048761adfd
treea9e1f4738e631d62e9f33ef68e4e4699dba3ff10
parent72b5b4194106d38432cd9892bc01e95d71bf75db
Add new minor mode `header-line-indent-mode'

This is mostly factored out from tabulated-list.el (with bugs fixed).

* doc/lispref/modes.texi (Header Lines): Document it.
* lisp/display-line-numbers.el (header-line-indent): New variable.
(header-line-indent--line-number-width)
(header-line-indent--watch-line-number-width)
(header-line-indent--window-scroll-function): New helper functions.
(header-line-indent-mode): New minor mode.

* lisp/display-line-numbers.el (header-line-indent-width): New
variable.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-line-number-width)
(tabulated-list-watch-line-number-width)
(tabulated-list-window-scroll-function): Make into obsolete aliases.
(tabulated-list-mode): Use 'header-line-indent-mode'.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header):
Adjust the header line format and computation.

* src/buffer.c (syms_of_buffer): Mention header-line-indent-mode.
doc/lispref/modes.texi
etc/NEWS
lisp/display-line-numbers.el
lisp/emacs-lisp/tabulated-list.el
src/buffer.c