emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master a955d79: Adapt tabulated list when display-line-num


From: Eli Zaretskii
Subject: [Emacs-diffs] master a955d79: Adapt tabulated list when display-line-number is turned on
Date: Sat, 12 Aug 2017 05:46:43 -0400 (EDT)

branch: master
commit a955d7951624bf38649448dc89b411e8212dec0b
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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)
---
 lisp/emacs-lisp/tabulated-list.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/tabulated-list.el 
b/lisp/emacs-lisp/tabulated-list.el
index b91532f..955b664 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]