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: Mon, 14 Oct 2019 01:39:28 +0300 Organization: LINKOV.NET Message-ID: <87sgnw2pz3.fsf@mail.linkov.net> References: <83o8yrvzgh.fsf@gnu.org> <87imownt6j.fsf@mail.linkov.net> <83eezjrbuj.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="117793"; 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 Mon Oct 14 01:26:22 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 1iJnFm-000UYx-35 for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 01:26:22 +0200 Original-Received: from localhost ([::1]:43512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJnFl-0004XD-0W for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Oct 2019 19:26:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55454) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJnFT-0004Jw-C3 for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2019 19:26:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJnFS-0005dJ-B0 for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2019 19:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJnFS-0005dE-82 for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2019 19:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iJnFS-0001mw-1q for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2019 19:26: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: Sun, 13 Oct 2019 23:26:02 +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.15710091136799 (code B ref 37667); Sun, 13 Oct 2019 23:26:02 +0000 Original-Received: (at 37667) by debbugs.gnu.org; 13 Oct 2019 23:25:13 +0000 Original-Received: from localhost ([127.0.0.1]:37315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJnEe-0001lb-Sq for submit@debbugs.gnu.org; Sun, 13 Oct 2019 19:25:13 -0400 Original-Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:55298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJnEc-0001lO-1N for 37667@debbugs.gnu.org; Sun, 13 Oct 2019 19:25:11 -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 F2EA4500F01; Sun, 13 Oct 2019 23:25:08 +0000 (UTC) Original-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@jurta.org Original-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@jurta.org X-MailChannels-Auth-Id: dreamhost X-Spot-Blushing: 72e85328776c2fbb_1571009108802_658014438 X-MC-Loop-Signature: 1571009108802:682585999 X-MC-Ingress-Time: 1571009108802 Original-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= Original-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@jurta.org) 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 In-Reply-To: <83eezjrbuj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Oct 2019 10:16:20 +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:169171 Archived-At: >> 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.