Commit a955d795 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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)
parent 8cc8ad02
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment