diff options
author | João Távora <joaotavora@gmail.com> | 2020-04-12 13:10:45 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2020-04-12 15:14:53 +0100 |
commit | 3bf152b1725031d02c0e7455657cca2ad358e44b (patch) | |
tree | f351d0f231a11fe227d2e4baf75c2871ee417a7a | |
parent | 36873ef2b268d8d8be1ed8b517c90be2c1dcdc8b (diff) | |
download | emacs-scratch/fix-40529-tabulated-list-mode-bootstrapping.tar.gz |
Fix tabulated-list-mode bootstrapping problemscratch/fix-40529-tabulated-list-mode-bootstrapping
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.
-rw-r--r-- | lisp/emacs-lisp/tabulated-list.el | 2 |
1 files changed, 1 insertions, 1 deletions
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) |