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: Tue, 15 Oct 2019 00:47:51 +0300 Organization: LINKOV.NET Message-ID: <87lftnqbmg.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="52703"; 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 23:54:14 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 1iK8IA-000DbG-28 for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 23:54:14 +0200 Original-Received: from localhost ([::1]:58036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iK8I8-0003L6-SU for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 17:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37900) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iK8I0-0003K2-Tj for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 17:54:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iK8Hz-0001Qs-Nf for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 17:54:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33550) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iK8Hy-0001OR-Jm for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 17:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iK8Hy-0002bu-Et for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 17:54: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: Mon, 14 Oct 2019 21:54: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.15710900249973 (code B ref 37667); Mon, 14 Oct 2019 21:54:02 +0000 Original-Received: (at 37667) by debbugs.gnu.org; 14 Oct 2019 21:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:42368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK8Hf-0002al-DM for submit@debbugs.gnu.org; Mon, 14 Oct 2019 17:53:43 -0400 Original-Received: from crocodile.birch.relay.mailchannels.net ([23.83.209.45]:33489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK8Hc-0002aa-SF for 37667@debbugs.gnu.org; Mon, 14 Oct 2019 17:53:41 -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 1C2535A13B8; Mon, 14 Oct 2019 21:53:39 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a67.g.dreamhost.com (100-96-171-212.trex.outbound.svc.cluster.local [100.96.171.212]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A683F5A13DE; Mon, 14 Oct 2019 21:53:38 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a67.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 21:53:39 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Abaft-Troubled: 43df7fa11e0d6504_1571090018883_2104868375 X-MC-Loop-Signature: 1571090018883:1101586391 X-MC-Ingress-Time: 1571090018882 Original-Received: from pdx1-sub0-mail-a67.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a67.g.dreamhost.com (Postfix) with ESMTP id 434E580216; Mon, 14 Oct 2019 14:53:35 -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=vpOMXI2PaRZYAxKiyGTl4mPN+nw=; b= i+ZIhHRFnZYddrg7eF7N8GAQXYaI/FLNcqg/MneDEZJGxk+p/hshMgQVWtNyLVqq AJllOHpPnzrRRlz/NmkPzJ0zkS0lX0XMx/tmm7AS4O07SMIecEa0kJoTBb4klpV7 LmCnJr6p/kPa8kLEphuDXJ3efp8VJmGVRGUu38oG28A= 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-a67.g.dreamhost.com (Postfix) with ESMTPSA id AAB688021D; Mon, 14 Oct 2019 14:53:33 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a67 In-Reply-To: <83o8yjke0u.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 14 Oct 2019 10:00:17 +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:169329 Archived-At: >> >> 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? I meant using the existing function tab_bar_height whose value increases FRAME_TAB_BAR_LINES, but TTY doesn't use FRAME_TAB_BAR_LINES. >> 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. What is needed to enable it? Does hscrolling depend on the position of point so point should be moved to the current tab to center other tabs around it? Also I tried to insert newlines in the tab-bar string, without success. >> 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. This is the simplest and quickest option to implement. For Info-history it took just 20 lines of Lisp code.