From 3bf152b1725031d02c0e7455657cca2ad358e44b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 12 Apr 2020 13:10:45 +0100 Subject: [PATCH] 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 501cc3a29e0..68eaef1fcd2 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) -- 2.39.5