emacs-diffs
[Top][All Lists]
Advanced

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

scratch/fix-40529-tabulated-list-mode-bootstrapping 3bf152b: Fix tabulat


From: João Távora
Subject: scratch/fix-40529-tabulated-list-mode-bootstrapping 3bf152b: Fix tabulated-list-mode bootstrapping problem
Date: Sun, 12 Apr 2020 10:15:07 -0400 (EDT)

branch: scratch/fix-40529-tabulated-list-mode-bootstrapping
commit 3bf152b1725031d02c0e7455657cca2ad358e44b
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Fix tabulated-list-mode bootstrapping problem
    
    Fixes: bug#40529
    Don't refresh all the tabulated-list rows when entering
    tabulated-list-mode just because display-line-number-mode is t.
    
    * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Don't
    call tabulated-list-revert, just tabulated-list-init-header.
---
 lisp/emacs-lisp/tabulated-list.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/tabulated-list.el 
b/lisp/emacs-lisp/tabulated-list.el
index 501cc3a..68eaef1 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -765,7 +765,7 @@ as the ewoc pretty-printer."
   ;; column of the first entry happens to begin with a R2L letter.
   (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)
+  (add-hook 'display-line-numbers-mode-hook #'tabulated-list-init-header nil t)
   ;; This is for if/when they customize the line-number face or when
   ;; the line-number width needs to change due to scrolling.
   (setq-local tabulated-list--current-lnum-width 0)



reply via email to

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