diff options
| author | João Távora | 2020-04-12 13:10:45 +0100 |
|---|---|---|
| committer | João Távora | 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 emacs-scratch/fix-40529-tabulated-list-mode-bootstrapping.zip | |
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." | |||
| 765 | ;; column of the first entry happens to begin with a R2L letter. | 765 | ;; column of the first entry happens to begin with a R2L letter. |
| 766 | (setq bidi-paragraph-direction 'left-to-right) | 766 | (setq bidi-paragraph-direction 'left-to-right) |
| 767 | ;; This is for if/when they turn on display-line-numbers | 767 | ;; This is for if/when they turn on display-line-numbers |
| 768 | (add-hook 'display-line-numbers-mode-hook #'tabulated-list-revert nil t) | 768 | (add-hook 'display-line-numbers-mode-hook #'tabulated-list-init-header nil t) |
| 769 | ;; This is for if/when they customize the line-number face or when | 769 | ;; This is for if/when they customize the line-number face or when |
| 770 | ;; the line-number width needs to change due to scrolling. | 770 | ;; the line-number width needs to change due to scrolling. |
| 771 | (setq-local tabulated-list--current-lnum-width 0) | 771 | (setq-local tabulated-list--current-lnum-width 0) |