unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58740: tab line overscroll
@ 2022-10-23 13:56 João Guerra
  2022-10-25 18:51 ` Juri Linkov
  0 siblings, 1 reply; 2+ messages in thread
From: João Guerra @ 2022-10-23 13:56 UTC (permalink / raw)
  To: 58740

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

If a user has word wrap globally enabled, e.g. via (setq-default
word-wrap t), tab-line-auto-hscroll overscrolls, i.e. when scrolling
the tab line to make the selected tab visible, it may overscroll extra
tabs unnecessarily.

This patch disables word wrap when setting up the temporary buffer
used by tab-line-auto-hscroll.

[-- Attachment #2: tab-line.patch --]
[-- Type: application/octet-stream, Size: 469 bytes --]

diff --git a/lisp/tab-line.el b/lisp/tab-line.el
index 94e8f29a95..657d78d795 100644
--- a/lisp/tab-line.el
+++ b/lisp/tab-line.el
@@ -620,7 +620,8 @@ the selected tab visible."
     (let ((truncate-partial-width-windows nil)
           (inhibit-modification-hooks t)
           show-arrows)
-      (setq truncate-lines nil)
+      (setq truncate-lines nil
+            word-wrap nil)
       (erase-buffer)
       (apply 'insert strings)
       (goto-char (point-min))

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#58740: tab line overscroll
  2022-10-23 13:56 bug#58740: tab line overscroll João Guerra
@ 2022-10-25 18:51 ` Juri Linkov
  0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2022-10-25 18:51 UTC (permalink / raw)
  To: João Guerra; +Cc: 58740

close 58740 29.0.50
thanks

> If a user has word wrap globally enabled, e.g. via (setq-default
> word-wrap t), tab-line-auto-hscroll overscrolls, i.e. when scrolling
> the tab line to make the selected tab visible, it may overscroll extra
> tabs unnecessarily.
>
> This patch disables word wrap when setting up the temporary buffer
> used by tab-line-auto-hscroll.

Thanks for the patch, now pushed.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-25 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-23 13:56 bug#58740: tab line overscroll João Guerra
2022-10-25 18:51 ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).