From: "João Guerra" <joca.bt@gmail.com>
To: 58740@debbugs.gnu.org
Subject: bug#58740: tab line overscroll
Date: Sun, 23 Oct 2022 15:56:37 +0200 [thread overview]
Message-ID: <CAGiBfP1mLUzWL=fSMPGWELgbFzZYTvziw=R6x6Uvo+8N+j=3Wg@mail.gmail.com> (raw)
[-- 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))
next reply other threads:[~2022-10-23 13:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-23 13:56 João Guerra [this message]
2022-10-25 18:51 ` bug#58740: tab line overscroll Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGiBfP1mLUzWL=fSMPGWELgbFzZYTvziw=R6x6Uvo+8N+j=3Wg@mail.gmail.com' \
--to=joca.bt@gmail.com \
--cc=58740@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.