Adapt tabulated list when display-line-number is turned on

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Add
a hook to revert the display when display-line-numbers is turned
on.  (Bug#27895)
This commit is contained in:
Eli Zaretskii 2017-08-12 12:45:05 +03:00
parent 8cc8ad02bd
commit a955d79516

View file

@ -628,7 +628,9 @@ as the ewoc pretty-printer."
(setq-local glyphless-char-display tabulated-list-glyphless-char-display)
;; Avoid messing up the entries' display just because the first
;; column of the first entry happens to begin with a R2L letter.
(setq bidi-paragraph-direction 'left-to-right))
(setq bidi-paragraph-direction 'left-to-right)
;; This is for if/when they turn on display-line-numbers
(add-hook 'display-line-numbers-mode-hook #'tabulated-list-revert nil t))
(put 'tabulated-list-mode 'mode-class 'special)