From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs Date: Wed, 23 Oct 2019 00:19:27 +0300 Organization: LINKOV.NET Message-ID: <87eez4pjfk.fsf@mail.linkov.net> References: <83o8yrvzgh.fsf@gnu.org> <87imownt6j.fsf@mail.linkov.net> <83eezjrbuj.fsf@gnu.org> <87sgnw2pz3.fsf@mail.linkov.net> <83o8yjke0u.fsf@gnu.org> <87lftnqbmg.fsf@mail.linkov.net> <83h84agytj.fsf@gnu.org> <87tv89opbh.fsf@mail.linkov.net> <83mue1g845.fsf@gnu.org> <83lftlg6zc.fsf@gnu.org> <87lftlk504.fsf@mail.linkov.net> <83eezceir2.fsf@gnu.org> <87pniwuwj5.fsf@mail.linkov.net> <83blufdehy.fsf@gnu.org> <878spj57dk.fsf@mail.linkov.net> <83v9sm8rs3.fsf@gnu.org> <87blubaw63.fsf@mail.linkov.net> <83zhhu34xz.fsf@gnu.org> <8736fl91vp.fsf@mail.linkov.net> <834l0024lr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152874"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 37667@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 22 23:22:58 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iN1cI-000dcw-4V for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2019 23:22:58 +0200 Original-Received: from localhost ([::1]:45470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN1cG-0001nk-TB for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2019 17:22:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51464) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN1aR-0000LG-Uq for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 17:21:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iN1aQ-0001R8-Rv for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 17:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51735) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iN1aQ-0001Qs-7B for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 17:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iN1aP-0006UU-WF for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 17:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Oct 2019 21:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37667 X-GNU-PR-Package: emacs Original-Received: via spool by 37667-submit@debbugs.gnu.org id=B37667.157177925924922 (code B ref 37667); Tue, 22 Oct 2019 21:21:01 +0000 Original-Received: (at 37667) by debbugs.gnu.org; 22 Oct 2019 21:20:59 +0000 Original-Received: from localhost ([127.0.0.1]:60556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iN1aN-0006Tt-7y for submit@debbugs.gnu.org; Tue, 22 Oct 2019 17:20:59 -0400 Original-Received: from anteater.elm.relay.mailchannels.net ([23.83.212.3]:59318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iN1aI-0006Tj-Sm for 37667@debbugs.gnu.org; Tue, 22 Oct 2019 17:20:57 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 88C633C087D; Tue, 22 Oct 2019 21:20:53 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a40.g.dreamhost.com (100-96-4-204.trex.outbound.svc.cluster.local [100.96.4.204]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D201F3C03F2; Tue, 22 Oct 2019 21:20:52 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a40.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 22 Oct 2019 21:20:53 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Thread-Shade: 2d160a115572c83d_1571779253233_509614653 X-MC-Loop-Signature: 1571779253233:53598404 X-MC-Ingress-Time: 1571779253233 Original-Received: from pdx1-sub0-mail-a40.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a40.g.dreamhost.com (Postfix) with ESMTP id 844CD7FDB6; Tue, 22 Oct 2019 14:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=FtGaIQkaOanKKj/2KUMQk9tCeDk=; b= zlhetp98a/MSAyFXuc36Jh8j11tVkIIvOzUhR72yCU7MCdmt9HJStsmOTToziLKA 0LB8kAp+EytT75cbiAVJ76jzlm8Sp7BFwTOXZJhQwvQ33j4o4E9SYQ475tN5N0N9 e3QJ7dl0K71BZRhzcjVZlzUIktxiwt75RtYTdGnIfqY= Original-Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a40.g.dreamhost.com (Postfix) with ESMTPSA id EF9EC7FD95; Tue, 22 Oct 2019 14:20:45 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a40 In-Reply-To: <834l0024lr.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Oct 2019 18:16:00 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170012 Archived-At: > But that won't work with variable-pitch fonts and with different > images for the add and close buttons, would it? Also, doesn't > tab-line-format allow faces (which could change font size) and dynamic > elements via the likes of :eval, like mode-line does? these would > prevent you from finding where to cut the content, no? > > But if this works, by all means go ahead and install something like > that. There are two related but separate features: scrolling and auto-scrolling. Scrolling is implemented now and installed. It provides UI with buttons, commands, and mouse-wheeling. Auto-scrolling could be implemented as well for user convenience: like when auto-hscroll-mode is enabled, the tab-line could do the same - when due to the long row of tabs, the current tab gets pushed over the right edge outside of the screen, then the tab-line could be automatically scrolled horizontally to make the current tab visible. This could be implemented by setting the right value to the new window parameter tab-line-hscroll, and it will bring the current tab back to the view. The main problem in implementing auto-scrolling is how to detect the situation when the current tab is not visible. Maybe by implementing a function like pos-visible-in-window-p, but named tab-visible-in-tab-line?