]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/tab-line.el (tab-line-auto-hscroll): Don't let-bind buffer-local values
authorJuri Linkov <juri@linkov.net>
Sat, 30 Nov 2019 21:42:37 +0000 (23:42 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 30 Nov 2019 21:42:37 +0000 (23:42 +0200)
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.

lisp/tab-line.el

index 0f701842dfae626ccde74da52356219c4a9a9b58..c98b1cfce61e59459a61517793aa113d059bf242 100644 (file)
@@ -482,10 +482,10 @@ the selected tab visible."
 (defun tab-line-auto-hscroll (strings hscroll)
   (with-temp-buffer
     (let ((truncate-partial-width-windows nil)
-          (truncate-lines nil)
           (inhibit-modification-hooks t)
-          (buffer-undo-list t)
           show-arrows)
+      (setq truncate-lines nil
+            buffer-undo-list t)
       (apply 'insert strings)
       (goto-char (point-min))
       (add-face-text-property (point-min) (point-max) 'tab-line)