]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tabulated-list-mode bootstrapping problem scratch/fix-40529-tabulated-list-mode-bootstrapping
authorJoão Távora <joaotavora@gmail.com>
Sun, 12 Apr 2020 12:10:45 +0000 (13:10 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 12 Apr 2020 14:14:53 +0000 (15:14 +0100)
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

index 501cc3a29e05fde6bbcc4bd8c250742745e9ae41..68eaef1fcd242680c335766be1fc3e0ae1ffdbdc 100644 (file)
@@ -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)