diff options
| author | Juri Linkov | 2019-11-30 23:42:37 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-11-30 23:42:37 +0200 |
| commit | dfbbbf319e4e357c82a79944090c949f3c5299c3 (patch) | |
| tree | 4a602d986ef9813e4b003fe5e39922ce0195cab5 | |
| parent | df89d6d6dc429e638e425536d1c201b5373f2abd (diff) | |
| download | emacs-dfbbbf319e4e357c82a79944090c949f3c5299c3.tar.gz emacs-dfbbbf319e4e357c82a79944090c949f3c5299c3.zip | |
* lisp/tab-line.el (tab-line-auto-hscroll): Don't let-bind buffer-local values
Use setq to set buffer-local values of truncate-lines and buffer-undo-list.
This will prevent leaking of let-bound values to buffer-local values
of the minibuffer.
| -rw-r--r-- | lisp/tab-line.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/tab-line.el b/lisp/tab-line.el index 0f701842dfa..c98b1cfce61 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el | |||
| @@ -482,10 +482,10 @@ the selected tab visible." | |||
| 482 | (defun tab-line-auto-hscroll (strings hscroll) | 482 | (defun tab-line-auto-hscroll (strings hscroll) |
| 483 | (with-temp-buffer | 483 | (with-temp-buffer |
| 484 | (let ((truncate-partial-width-windows nil) | 484 | (let ((truncate-partial-width-windows nil) |
| 485 | (truncate-lines nil) | ||
| 486 | (inhibit-modification-hooks t) | 485 | (inhibit-modification-hooks t) |
| 487 | (buffer-undo-list t) | ||
| 488 | show-arrows) | 486 | show-arrows) |
| 487 | (setq truncate-lines nil | ||
| 488 | buffer-undo-list t) | ||
| 489 | (apply 'insert strings) | 489 | (apply 'insert strings) |
| 490 | (goto-char (point-min)) | 490 | (goto-char (point-min)) |
| 491 | (add-face-text-property (point-min) (point-max) 'tab-line) | 491 | (add-face-text-property (point-min) (point-max) 'tab-line) |