GNU bug report logs - #37667
27.0.50; Tab Bar display problems with more than 5 tabs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Eli Zaretskii <eliz@HIDDEN>; dated Tue, 8 Oct 2019 18:57:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 14 Oct 2019 20:22:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 16:22:31 2019
Received: from localhost ([127.0.0.1]:41839 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iK6rP-00042I-LI
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 16:22:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42098)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iK6rN-000420-BO
 for 37667 <at> debbugs.gnu.org; Mon, 14 Oct 2019 16:22:29 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:32924)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iK6rH-0002gq-St; Mon, 14 Oct 2019 16:22:23 -0400
Received: from [176.228.60.248] (port=4916 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iK6rH-0002rg-Ac; Mon, 14 Oct 2019 16:22:23 -0400
Date: Mon, 14 Oct 2019 23:22:17 +0300
Message-Id: <835zkrhybq.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <87d0ezt7jd.fsf@HIDDEN> (message from Juri Linkov on
 Mon, 14 Oct 2019 23:07:50 +0300)
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
References: <83o8yrvzgh.fsf@HIDDEN> <87imownt6j.fsf@HIDDEN>
 <276bd257-ce79-f2bc-4870-a412bc972374@HIDDEN>
 <8736fw5ji3.fsf@HIDDEN> <83pnizkef0.fsf@HIDDEN>
 <87d0ezt7jd.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37667
Cc: rudalics@HIDDEN, 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: rudalics@HIDDEN,  37667 <at> debbugs.gnu.org
> Date: Mon, 14 Oct 2019 23:07:50 +0300
> 
> >> I tried a variable-pitch font for tab bars, and it looks good
> >> and makes tab widths smaller, so more tabs fits into the tab-bar.
> >
> > Could be a good idea.  Toolkit menu bars definitely use variable-pitch
> > fonts on most systems.
> 
> So I changed tab bars to use variable-pitch fonts.

Please make the :height attribute smaller, like 0.9.  The current
value of 1.1 produces too large tab names.

Btw, as long as we are optimizing the tab-bar appearance: I think the
choice of the colors of the current and non-current tabs should be
reversed: the lighter color is more appropriate for "inactive" than
the darker one.  Alternatively, use some non-gray color for the
current tab (I personally think these gray colors are too dull).

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 14 Oct 2019 20:09:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 16:09:02 2019
Received: from localhost ([127.0.0.1]:41813 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iK6eM-0001al-H7
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 16:09:02 -0400
Received: from azure.elm.relay.mailchannels.net ([23.83.212.7]:9529)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iK6eJ-0001aJ-TJ
 for 37667 <at> debbugs.gnu.org; Mon, 14 Oct 2019 16:09:00 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id BF4E2218A1;
 Mon, 14 Oct 2019 20:08:57 +0000 (UTC)
Received: from pdx1-sub0-mail-a7.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 707CD218F5;
 Mon, 14 Oct 2019 20:08:50 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a7.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); Mon, 14 Oct 2019 20:08:57 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Absorbed-Vacuous: 3baee3fb3eef78fe_1571083730689_3205380253
X-MC-Loop-Signature: 1571083730689:1568469567
X-MC-Ingress-Time: 1571083730689
Received: from pdx1-sub0-mail-a7.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a7.g.dreamhost.com (Postfix) with ESMTP id A8B6B7F660;
 Mon, 14 Oct 2019 13:08:45 -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=k3kTf3krhoKenSk9xeJGNKga1hk=; b=
 rUj9ZurQYD+1IxDEca9ETf7cxDRsghjxpmr9SXjqXcvj8h24h4uImlPNh19yzORS
 eZo42XWhKJa4J3EK50pqFyUttRxJQp46zZkQta7WuvzJxj75dZfpX/gNlMv3Z3Rv
 mRQ9V+u6N9eYkmWf0Mmc/f44v6UjhEUHyIVa7CZJCaE=
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@HIDDEN)
 by pdx1-sub0-mail-a7.g.dreamhost.com (Postfix) with ESMTPSA id 3E8627F65F;
 Mon, 14 Oct 2019 13:08:42 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a7
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
Organization: LINKOV.NET
References: <83o8yrvzgh.fsf@HIDDEN> <87imownt6j.fsf@HIDDEN>
 <276bd257-ce79-f2bc-4870-a412bc972374@HIDDEN>
 <8736fw5ji3.fsf@HIDDEN> <83pnizkef0.fsf@HIDDEN>
Date: Mon, 14 Oct 2019 23:07:50 +0300
In-Reply-To: <83pnizkef0.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 14 Oct
 2019 09:51:47 +0300")
Message-ID: <87d0ezt7jd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37667
Cc: rudalics@HIDDEN, 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> BTW, is there a reason why the mode line doesn't use a variable-pitch font?
>
> By default?  It would cause unpleasant horizontal movement of text,
> e.g. when the line number changes.  Also, many variable-pitch fonts
> have a very thin glyph for SPC, so different fields could appear as a
> single field, another visual problem.
>
> Of course, nothing prevents people from customizing the face to use
> whatever font they like.

I tried to customize the mode-line face to a variable-pitch font,
and indeed glyphs not only for SPC, but for 1-character indicators '-'
and '*' that toggle e.g. writable/modification states or switch coding,
are so thin that it's hard to click them with the mouse.

There is no such problem in tabs where clicking area is wide.

>> I tried a variable-pitch font for tab bars, and it looks good
>> and makes tab widths smaller, so more tabs fits into the tab-bar.
>
> Could be a good idea.  Toolkit menu bars definitely use variable-pitch
> fonts on most systems.

So I changed tab bars to use variable-pitch fonts.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 14 Oct 2019 07:00:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 03:00:31 2019
Received: from localhost ([127.0.0.1]:37802 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJuLH-0002Ss-0d
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 03:00:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33645)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iJuLF-0002LL-7c
 for 37667 <at> debbugs.gnu.org; Mon, 14 Oct 2019 03:00:29 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:47416)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iJuL9-0006s8-LT; Mon, 14 Oct 2019 03:00:23 -0400
Received: from [176.228.60.248] (port=1840 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iJuL8-0000C9-L3; Mon, 14 Oct 2019 03:00:23 -0400
Date: Mon, 14 Oct 2019 10:00:17 +0300
Message-Id: <83o8yjke0u.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <87sgnw2pz3.fsf@HIDDEN> (message from Juri Linkov on
 Mon, 14 Oct 2019 01:39:28 +0300)
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
References: <83o8yrvzgh.fsf@HIDDEN> <87imownt6j.fsf@HIDDEN>
 <83eezjrbuj.fsf@HIDDEN> <87sgnw2pz3.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37667
Cc: 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: 37667 <at> debbugs.gnu.org
> Date: Mon, 14 Oct 2019 01:39:28 +0300
> 
> >> 2. Disable wrapping to the second line since it's not supported in -nw;
> >
> > Why isn't it supported on TTY frames, btw?  It seemed to me that the
> > infrastructure is there, i.e. we can have FRAME_TAB_BAR_LINES(f) > 1,
> > it's just that the code doesn't consider this possibility.
> 
> Is it possible for TTY frames to use the same code that implements
> wrapping in multi-line tab-bar on graphical displays?

I don't think I understand the question.  Which details of wrapping
multi-line tab bars seem to prevent doing the same on TTY frames?

> >> 4. Or don't truncate but allow scrolling tabs with mouse wheel;
> >
> > Yes, this could work as well (but scrolling should be possible not
> > only with the mouse).  The implementation could simply hscroll the
> > tab-bar window, including automatic hscrolling when the current tab is
> > far from the leftmost one.  Maybe this alternative is the easiest
> > one.  The only difficulty here is with TTY frames.
> 
> Maybe after adding a new option that disables multi-line
> so tabs are displayed on one line, hscrolling could help
> to center around the current tab.

I think if we keep using multi-line tab bars, we don't need to
complicate things by hscrolling.  Not yet, anyway.

> 5. There is another alternative: display arrow buttons on both sides
>    of the tab-bar, clicking on arrows will hscroll tabs.

On GUI frames, you get this for free by using the hscrolling machinery
and line truncation.

> 6. Or even better: clicking on such arrow buttons will pop up a menu of
>    remaining tabs that don't fit into one-line tab-bar.
>    This is like implemented recently for Info-history where clicking on
>    the tool-bar arrow pops up a menu of previous Info nodes.  The same way
>    clicking on the arrows on the tab-bar could pop up a menu of tabs whose
>    names don't fit into the one-line tab-bar at both sides of the current tab.

I'd leave such fancy features for future releases.  Remember: we are
waiting for this and other new features to reach some reasonable state
in order to start the Emacs 27 release cycle.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 14 Oct 2019 06:52:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 02:52:01 2019
Received: from localhost ([127.0.0.1]:37798 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJuD2-0001lI-VL
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 02:52:01 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60909)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iJuD2-0001l7-5y
 for 37667 <at> debbugs.gnu.org; Mon, 14 Oct 2019 02:52:00 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:47330)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iJuCw-00039m-DO; Mon, 14 Oct 2019 02:51:54 -0400
Received: from [176.228.60.248] (port=1327 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iJuCv-0007jc-Q5; Mon, 14 Oct 2019 02:51:54 -0400
Date: Mon, 14 Oct 2019 09:51:47 +0300
Message-Id: <83pnizkef0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <8736fw5ji3.fsf@HIDDEN> (message from Juri Linkov on
 Mon, 14 Oct 2019 01:31:00 +0300)
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
References: <83o8yrvzgh.fsf@HIDDEN> <87imownt6j.fsf@HIDDEN>
 <276bd257-ce79-f2bc-4870-a412bc972374@HIDDEN> <8736fw5ji3.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37667
Cc: rudalics@HIDDEN, 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  37667 <at> debbugs.gnu.org
> Date: Mon, 14 Oct 2019 01:31:00 +0300
> 
> BTW, is there a reason why the mode line doesn't use a variable-pitch font?

By default?  It would cause unpleasant horizontal movement of text,
e.g. when the line number changes.  Also, many variable-pitch fonts
have a very thin glyph for SPC, so different fields could appear as a
single field, another visual problem.

Of course, nothing prevents people from customizing the face to use
whatever font they like.

> I tried a variable-pitch font for tab bars, and it looks good
> and makes tab widths smaller, so more tabs fits into the tab-bar.

Could be a good idea.  Toolkit menu bars definitely use variable-pitch
fonts on most systems.

> But maybe non-monospace fonts might complicate calculation of various
> text lengths when trying to fit tabs into the tab-bar.

Emacs never assumes a face uses fixed-pitch font when it calculates
the various metrics.  So this cannot be a problem (barring bugs).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 13 Oct 2019 23:25:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 19:25:13 2019
Received: from localhost ([127.0.0.1]:37315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJnEe-0001lb-Sq
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 19:25:13 -0400
Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:55298)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iJnEc-0001lO-1N
 for 37667 <at> debbugs.gnu.org; Sun, 13 Oct 2019 19:25:11 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id F2EA4500F01;
 Sun, 13 Oct 2019 23:25:08 +0000 (UTC)
Received: from pdx1-sub0-mail-a75.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 8BE9A500314;
 Sun, 13 Oct 2019 23:25:08 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a75.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); Sun, 13 Oct 2019 23:25:08 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Spot-Blushing: 72e85328776c2fbb_1571009108802_658014438
X-MC-Loop-Signature: 1571009108802:682585999
X-MC-Ingress-Time: 1571009108802
Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id 2A93486092;
 Sun, 13 Oct 2019 16:25:03 -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=YiXAZOjeijOf3QgSPdmlc5iDZKM=; b=
 fg4/vYhFxvRaIj5+D+HzNl8CtukStb08AC2E40P55Y5+PqEqVigBJIpKU05pS8BR
 IuloWSNqyT+KeGRhDk1KK/tXS+tiJkOCZPdLDwyULgxFWDixI6WqhsWmRkkcs4nq
 0ffPADnQvHUuXyH7p8nV4EmQjn4Jto0AVAYjOmqK0h8=
Received: from mail.jurta.org (m91-129-105-34.cust.tele2.ee [91.129.105.34])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 48D3A85628;
 Sun, 13 Oct 2019 16:25:00 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a75
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
Organization: LINKOV.NET
References: <83o8yrvzgh.fsf@HIDDEN> <87imownt6j.fsf@HIDDEN>
 <83eezjrbuj.fsf@HIDDEN>
Date: Mon, 14 Oct 2019 01:39:28 +0300
In-Reply-To: <83eezjrbuj.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 11 Oct
 2019 10:16:20 +0300")
Message-ID: <87sgnw2pz3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37667
Cc: 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> 1. Use something like word-wrap in the tab-bar to wrap
>>    to the second line non-broken tabs at tab boundaries;
>
> Yes, that's a possibility and shouldn't be hard to implement.

I'd like to keep the tab-bar multi-line.  No other application has
multi-line tab-bar - no web browsers, no other editors.  This could be
a unique Emacs feature that allows easier tab switching without
truncating tab names like web browsers do.  Even now it looks good,
but could be improved to wrap tabs better.

>> 2. Disable wrapping to the second line since it's not supported in -nw;
>
> Why isn't it supported on TTY frames, btw?  It seemed to me that the
> infrastructure is there, i.e. we can have FRAME_TAB_BAR_LINES(f) > 1,
> it's just that the code doesn't consider this possibility.

Is it possible for TTY frames to use the same code that implements
wrapping in multi-line tab-bar on graphical displays?

>> 3. Then truncate tab names to fit all tabs into the first line;
>
> This is not scalable.

I see that no one likes truncation of tab names.  Maybe this is because
buffer names in Emacs usually are not too long.

>> 4. Or don't truncate but allow scrolling tabs with mouse wheel;
>
> Yes, this could work as well (but scrolling should be possible not
> only with the mouse).  The implementation could simply hscroll the
> tab-bar window, including automatic hscrolling when the current tab is
> far from the leftmost one.  Maybe this alternative is the easiest
> one.  The only difficulty here is with TTY frames.

Maybe after adding a new option that disables multi-line
so tabs are displayed on one line, hscrolling could help
to center around the current tab.

5. There is another alternative: display arrow buttons on both sides
   of the tab-bar, clicking on arrows will hscroll tabs.

6. Or even better: clicking on such arrow buttons will pop up a menu of
   remaining tabs that don't fit into one-line tab-bar.
   This is like implemented recently for Info-history where clicking on
   the tool-bar arrow pops up a menu of previous Info nodes.  The same way
   clicking on the arrows on the tab-bar could pop up a menu of tabs whose
   names don't fit into the one-line tab-bar at both sides of the current tab.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 13 Oct 2019 23:25:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 19:25:05 2019
Received: from localhost ([127.0.0.1]:37312 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJnEX-0001lA-Ib
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 19:25:05 -0400
Received: from beige.elm.relay.mailchannels.net ([23.83.212.16]:63597)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iJnEU-0001kn-U0
 for 37667 <at> debbugs.gnu.org; Sun, 13 Oct 2019 19:25:03 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id B2EFA600AFC;
 Sun, 13 Oct 2019 23:25:01 +0000 (UTC)
Received: from pdx1-sub0-mail-a75.g.dreamhost.com
 (100-96-60-11.trex.outbound.svc.cluster.local [100.96.60.11])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 4B2D5600AC6;
 Sun, 13 Oct 2019 23:25:01 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a75.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); Sun, 13 Oct 2019 23:25:01 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Sponge-Fearful: 41cf5ea63d3572ac_1571009101527_3615512853
X-MC-Loop-Signature: 1571009101527:1313587700
X-MC-Ingress-Time: 1571009101526
Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id F042386092;
 Sun, 13 Oct 2019 16:24:55 -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=aLZv3IRz/KEu1wqj/F2WmNfCjyQ=; b=
 hf9H/nYvoeubyIC0RoI/iqEyd37GdlCTY2jQFaHO9j71b6egRB48M2MDG1VNPIM3
 j/nbPZV1iIT37uobox2VgWPUeqUQZrzskFx29q4oTtvFgrVfsiEFx2BB8JdYy8cV
 VCvYoKgttIi5GZl34baC3ZAgpAPIXebmnM1hfYQOesM=
Received: from mail.jurta.org (m91-129-105-34.cust.tele2.ee [91.129.105.34])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 20F9685628;
 Sun, 13 Oct 2019 16:24:53 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a75
From: Juri Linkov <juri@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
Organization: LINKOV.NET
References: <83o8yrvzgh.fsf@HIDDEN> <87imownt6j.fsf@HIDDEN>
 <276bd257-ce79-f2bc-4870-a412bc972374@HIDDEN>
Date: Mon, 14 Oct 2019 01:31:00 +0300
In-Reply-To: <276bd257-ce79-f2bc-4870-a412bc972374@HIDDEN> (martin rudalics's
 message of "Fri, 11 Oct 2019 10:17:13 +0200")
Message-ID: <8736fw5ji3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37667
Cc: Eli Zaretskii <eliz@HIDDEN>, 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> 1. Use something like word-wrap in the tab-bar to wrap
>>     to the second line non-broken tabs at tab boundaries;
>
> That's what I did in frame-tabs.el.  There I tried to use U-200B as
> separator but word-wrap couldn't handle it.

word-wrap wraps at word boundary that sometimes might be inside the tab name
when tab name contains spaces (tested frame-tabs.el on customization buffers
whose names contain a lot of spaces).

>> 2. Disable wrapping to the second line since it's not supported in -nw;
>
> -nw should support it.

Sorry, I don't understand the meaning of "should".
Does this mean -nw already supports it but its support is not used?

>> 3. Then truncate tab names to fit all tabs into the first line;
>
> Rather not.

But all web browsers truncate tab names.

>> 4. Or don't truncate but allow scrolling tabs with mouse wheel;
>
> IIRC XEmacs had that with the mode line.  Not really useful IMHO.

BTW, is there a reason why the mode line doesn't use a variable-pitch font?

I tried a variable-pitch font for tab bars, and it looks good
and makes tab widths smaller, so more tabs fits into the tab-bar.

But maybe non-monospace fonts might complicate calculation of various
text lengths when trying to fit tabs into the tab-bar.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 11 Oct 2019 08:17:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 04:17:29 2019
Received: from localhost ([127.0.0.1]:57659 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIq77-0007bS-Hs
	for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 04:17:29 -0400
Received: from mout.gmx.net ([212.227.17.20]:55181)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1iIq76-0007b9-2U
 for 37667 <at> debbugs.gnu.org; Fri, 11 Oct 2019 04:17:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1570781836;
 bh=I1QZdBUSqldzHtjZnKUhUDnSfV4oSgaPvHHsib1VsKA=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=jdmPWWS0RiZW7ENWfxP5AvNJe5eLddu856HsMNbfz02P2FCigHG/TEHmF9Uyd8OTt
 mWNnMDgv4mi+TdvsDxfF8PAoJ/KfBdJwI8XEYQKJxe5We2apGggqAjOFIz5n76DEvQ
 2ObKhbdzWWodJI7thI7m+raVIJFXrYyPepr54JlM=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.101] ([46.125.249.9]) by mail.gmx.com (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M7sDq-1iNlnS2oks-0051Jx; Fri, 11
 Oct 2019 10:17:16 +0200
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
To: Juri Linkov <juri@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
References: <83o8yrvzgh.fsf@HIDDEN> <87imownt6j.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <276bd257-ce79-f2bc-4870-a412bc972374@HIDDEN>
Date: Fri, 11 Oct 2019 10:17:13 +0200
MIME-Version: 1.0
In-Reply-To: <87imownt6j.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: de-AT
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:mEgh5WL2EGrf+hBhzjLwoyazHFTG27yQwSzgiIOzDmmTsljYOjr
 bP6KaXzkO9bWhP038rWHj/gHTUcxC2dofugdc7a99ObL6ji36TLoUOsvafoQqOD0jxI1Csk
 CtM8z+bRSyfV/0UBm7H62Hji5pzSdtkirjgKuV/HrLkj6CUvrzI/WpbeatqPZqUFG+GpkeD
 4ZE7McBs+35Nqckux7psQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:lbhHh/K+pXo=:1c3p7ic4O8kUY5kIwtFk+q
 HJWzoLmjFF8wqu8NkCYYWJDL3palUQNrwIDkhVhyeIW8MWFQLQIj5T+QovyxY7N1jt3Qi/9YO
 Wz4V+DRsBB2oPspKstddKAngnOOX4RKHmFo6LZuPEeVippTGwkYWFFQXI+lZ/498YITPX+xFw
 sXJp+eeeKcQARDf5kqtJW3tOPnW72YjXSahVxX/Ro4/+3znLZ5CLAk4Yk1wiA7cOgjZ3Yyvz0
 36n9GdyBvxOjJjLQy+FIKqr00A/yqB+FQuRt1uFukRYHgq3pphayU1Bl2OwpaAx9UQsRuvsHF
 4t5sqaFRaQ6BXVHjwYRh3LXqlsIEH4DsRJ7U4r0wbQYDsqHP+Pn93iZ5tZ9XR/tRJwpfY0d5v
 DnFAXtqWP+JNA1hBsZNF04JUJJG8JKat4MHhMPXJdNT6A1eGZJfPfuFt5WkhQ3BgkUkroI7n/
 FvgppsDholYHc6/tTcK/BC5qJ8ZukYppK86bPGSjlgWHt0xNJXPEyIqosuJ8SQ9ggPeQx2Rgd
 jwroTnLjVOZxZbiSv/FnjIpKJQKd1OGQEcIfZgSZWrXd/o5PFk/VeJT3am5XNyoUXoinCil4K
 cR0zviu+vi8Tt+juwn/L8H/g+1UW6qbjxu2wugdDjfkDYGuTJ05HCfmfSzckUeSEeBeyVpOSr
 pLDhYUYRHoLayyMtu9aMRBC7wXep21X/8UGjAQIB0AOBnFmte7aonWs4ZBLycO2B6arWuhVWn
 ti1DD2XvFD6vZ/zxXG15fadYUm7wP3nqi547bw9U+M9iek7+bkKXDyg2dhVx7hEpdugYnkvww
 LJhjMlT4hfyLw8R4y+nvmD9mWob8mii5vJIsF+mmsKOrhHxbgvxl9oWlQ4L5nfr6x4cuftfka
 +win+28kGboHph02be3ZrLDjMVGkq/YbTU2T/KiqfwB+cht2NrKjXYouwmKU95hBgXg5n4WmL
 vBzRdzVCD2ItObAnSrq0tTgQdLQhhEhPRloItefMkFQKJaUVDcfKnqD3EBR9TDomJq13w+YvO
 WeLYZMsPh5WC6mZE7k18Nzw6DS+I4buuiCZvrTsb7eH3eQfzDjKOTpqtxOwKDsVajarXYinLl
 tBAMGGek4gk1zkyJZLMLtJHELPAs6Zast1WWyAsuvV29iLg72E4ZC/Dn36ST0rRNFc7zSaOgi
 IXTYNl81t8v0Ib/Bf6xvw9S01q+CnlRDH+ghe+gpAYVDs5bxmgCiXVc6Ud4fm1EBj+F4p1aKl
 PZD3zaCG5cgDKgaefCZu5FQPeK9XL+PTwyxPaSbMYqtt1ALCpJOirx15QSs0=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37667
Cc: 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > 1. Use something like word-wrap in the tab-bar to wrap
 >     to the second line non-broken tabs at tab boundaries;

That's what I did in frame-tabs.el.  There I tried to use U-200B as
separator but word-wrap couldn't handle it.

 > 2. Disable wrapping to the second line since it's not supported in -nw;

-nw should support it.

 > 3. Then truncate tab names to fit all tabs into the first line;

Rather not.

 > 4. Or don't truncate but allow scrolling tabs with mouse wheel;

IIRC XEmacs had that with the mode line.  Not really useful IMHO.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 11 Oct 2019 07:16:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 03:16:45 2019
Received: from localhost ([127.0.0.1]:57574 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIpAK-0000qK-Ov
	for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 03:16:45 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51245)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iIpAI-0000kT-OE
 for 37667 <at> debbugs.gnu.org; Fri, 11 Oct 2019 03:16:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54804)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iIpAC-0008D3-Vw; Fri, 11 Oct 2019 03:16:37 -0400
Received: from [176.228.60.248] (port=4339 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iIpAC-0004vk-9K; Fri, 11 Oct 2019 03:16:36 -0400
Date: Fri, 11 Oct 2019 10:16:20 +0300
Message-Id: <83eezjrbuj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <87imownt6j.fsf@HIDDEN> (message from Juri Linkov on
 Fri, 11 Oct 2019 01:25:32 +0300)
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
References: <83o8yrvzgh.fsf@HIDDEN> <87imownt6j.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37667
Cc: 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: 37667 <at> debbugs.gnu.org
> Date: Fri, 11 Oct 2019 01:25:32 +0300
> 
> >   C-x 6 f xdisp.c RET
> >   C-x 6 f dispnew.c RET
> >   C-x 6 f dispextern.h RET
> >   C-x 6 f window.c RET
> >   C-x 6 f frame.c RET
> >
> > The 6th button is displayed partially on the 1st tab-bar line, and the
> > rest on the 2nd line, which I don't think is pretty.
> >
> > If you do the same in a -nw session, the 6th tab will not be visible
> > at all (it looks like display_tab_bar assumes there's always just one
> > tab-bar line?).
> 
> What are the possible options?
> 
> 1. Use something like word-wrap in the tab-bar to wrap
>    to the second line non-broken tabs at tab boundaries;

Yes, that's a possibility and shouldn't be hard to implement.

> 2. Disable wrapping to the second line since it's not supported in -nw;

Why isn't it supported on TTY frames, btw?  It seemed to me that the
infrastructure is there, i.e. we can have FRAME_TAB_BAR_LINES(f) > 1,
it's just that the code doesn't consider this possibility.

> 3. Then truncate tab names to fit all tabs into the first line;

This is not scalable.

> 4. Or don't truncate but allow scrolling tabs with mouse wheel;

Yes, this could work as well (but scrolling should be possible not
only with the mouse).  The implementation could simply hscroll the
tab-bar window, including automatic hscrolling when the current tab is
far from the leftmost one.  Maybe this alternative is the easiest
one.  The only difficulty here is with TTY frames.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at 37667 <at> debbugs.gnu.org:


Received: (at 37667) by debbugs.gnu.org; 10 Oct 2019 22:47:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 10 18:47:36 2019
Received: from localhost ([127.0.0.1]:57290 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIhDb-00048M-RU
	for submit <at> debbugs.gnu.org; Thu, 10 Oct 2019 18:47:36 -0400
Received: from butterfly.birch.relay.mailchannels.net ([23.83.209.27]:21436)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1iIhDZ-00048C-8r
 for 37667 <at> debbugs.gnu.org; Thu, 10 Oct 2019 18:47:34 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id BC1F6341B3A;
 Thu, 10 Oct 2019 22:47:31 +0000 (UTC)
Received: from pdx1-sub0-mail-a15.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 0B627340E9B;
 Thu, 10 Oct 2019 22:47:31 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a15.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); Thu, 10 Oct 2019 22:47:31 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Callous-Company: 0c6290e6117dd00f_1570747651268_2398656030
X-MC-Loop-Signature: 1570747651268:1249628355
X-MC-Ingress-Time: 1570747651267
Received: from pdx1-sub0-mail-a15.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a15.g.dreamhost.com (Postfix) with ESMTP id 817AD84DD3;
 Thu, 10 Oct 2019 15:47:25 -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=PSAE/4rcqRFRUy0DOFNw3POsHU8=; b=
 jqzHNSNEUHRatW0xw/zrUZ93FaRa1V9iN+iNjz7+EOmLXfXfPdwtjBTj9eYl9WCm
 k8OLgq+1EWxFk7AldPwoxOD4B8PMsBjZ8gdcS8JuvT2/eyg71TodXu+BZZMyTQUT
 1KDBB7hnwJjHADsc1eyN5KB+GofvrLznLu13hpu+H04=
Received: from mail.jurta.org (m91-129-105-34.cust.tele2.ee [91.129.105.34])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a15.g.dreamhost.com (Postfix) with ESMTPSA id D091084DD0;
 Thu, 10 Oct 2019 15:47:23 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a15
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#37667: 27.0.50; Tab Bar display problems with more than 5 tabs
Organization: LINKOV.NET
References: <83o8yrvzgh.fsf@HIDDEN>
Date: Fri, 11 Oct 2019 01:25:32 +0300
In-Reply-To: <83o8yrvzgh.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 08 Oct
 2019 21:55:58 +0300")
Message-ID: <87imownt6j.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrieeggddufecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddthedrfeegnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddthedrfeegpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghlihiisehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37667
Cc: 37667 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> To reproduce, invoke Emacs from the src directory:
>
>   ./emacs -Q
>
> and then type:
>
>   C-x 6 f xdisp.c RET
>   C-x 6 f dispnew.c RET
>   C-x 6 f dispextern.h RET
>   C-x 6 f window.c RET
>   C-x 6 f frame.c RET
>
> The 6th button is displayed partially on the 1st tab-bar line, and the
> rest on the 2nd line, which I don't think is pretty.
>
> If you do the same in a -nw session, the 6th tab will not be visible
> at all (it looks like display_tab_bar assumes there's always just one
> tab-bar line?).

What are the possible options?

1. Use something like word-wrap in the tab-bar to wrap
   to the second line non-broken tabs at tab boundaries;

2. Disable wrapping to the second line since it's not supported in -nw;

3. Then truncate tab names to fit all tabs into the first line;

4. Or don't truncate but allow scrolling tabs with mouse wheel;




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Oct 2019 18:56:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 08 14:56:07 2019
Received: from localhost ([127.0.0.1]:51531 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iHueU-0001s2-LF
	for submit <at> debbugs.gnu.org; Tue, 08 Oct 2019 14:56:06 -0400
Received: from lists.gnu.org ([209.51.188.17]:52933)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iHueS-0001rv-Nv
 for submit <at> debbugs.gnu.org; Tue, 08 Oct 2019 14:56:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42366)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>) id 1iHueR-0002wc-A8
 for bug-gnu-emacs@HIDDEN; Tue, 08 Oct 2019 14:56:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_50
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:470:142:3::e]:49772)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iHueR-0006Y5-5j
 for bug-gnu-emacs@HIDDEN; Tue, 08 Oct 2019 14:56:03 -0400
Received: from [176.228.60.248] (port=4277 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>) id 1iHueQ-0003Q3-4k
 for bug-gnu-emacs@HIDDEN; Tue, 08 Oct 2019 14:56:02 -0400
Date: Tue, 08 Oct 2019 21:55:58 +0300
Message-Id: <83o8yrvzgh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Tab Bar display problems with more than 5 tabs
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

To reproduce, invoke Emacs from the src directory:

  ./emacs -Q

and then type:

  C-x 6 f xdisp.c RET
  C-x 6 f dispnew.c RET
  C-x 6 f dispextern.h RET
  C-x 6 f window.c RET
  C-x 6 f frame.c RET

The 6th button is displayed partially on the 1st tab-bar line, and the
rest on the 2nd line, which I don't think is pretty.

If you do the same in a -nw session, the 6th tab will not be visible
at all (it looks like display_tab_bar assumes there's always just one
tab-bar line?).


In GNU Emacs 27.0.50 (build 1485, i686-pc-mingw32)
 of 2019-10-08 built on HOME-C4E4A596F7
Repository revision: f96b8fd27c382a941c52c2938544b9b0e3a2fb0e
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 5.1.2600
System Description: Microsoft Windows XP Service Pack 3 (v5.1.0.2600)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Quit
C-x 6 <up> is undefined
C-x <tab-bar> is undefined
<tab-3> is undefined

Configured using:
 'configure -C --prefix=/d/usr --with-wide-int --with-modules
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -gdwarf-4 -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1255

Major mode: C/*l

Minor modes in effect:
  bug-reference-prog-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  tab-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny format-spec rfc822 mml
mml-sec password-cache epa derived epg epg-config gnus-util rmail
rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv
bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils dired dired-loaddefs vc-git
diff-mode easy-mmode bug-reference cc-mode cc-fonts easymenu cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win
w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads w32notify w32 lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 102411 7725)
 (symbols 48 10315 1)
 (strings 16 26738 2116)
 (string-bytes 1 886304)
 (vectors 16 13502)
 (vector-slots 8 175153 9830)
 (floats 8 33 243)
 (intervals 40 6259 190)
 (buffers 888 17))




Acknowledgement sent to Eli Zaretskii <eliz@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37667; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 14 Oct 2019 20:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.