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, 21 Oct 2019 01:28:52 +0300 Organization: LINKOV.NET Message-ID: <87blubaw63.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26169"; 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 21 00:42:17 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 1iMJtv-0006fQ-Lr for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Oct 2019 00:42:16 +0200 Original-Received: from localhost ([::1]:50458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMJtt-0002dI-CJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 18:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32890) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMJtj-0002bC-V8 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 18:42:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMJti-0003FP-Ox for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 18:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMJti-0003FL-Ls for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 18:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMJti-0005H6-Hg for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 18:42: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, 20 Oct 2019 22:42: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.157161131520262 (code B ref 37667); Sun, 20 Oct 2019 22:42:02 +0000 Original-Received: (at 37667) by debbugs.gnu.org; 20 Oct 2019 22:41:55 +0000 Original-Received: from localhost ([127.0.0.1]:55442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMJtb-0005Gk-0O for submit@debbugs.gnu.org; Sun, 20 Oct 2019 18:41:55 -0400 Original-Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]:43057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMJtZ-0005Gc-Lt for 37667@debbugs.gnu.org; Sun, 20 Oct 2019 18:41:54 -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 62E882C11B3; Sun, 20 Oct 2019 22:41:52 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a8.g.dreamhost.com (100-96-84-88.trex.outbound.svc.cluster.local [100.96.84.88]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 058BA2C0DCF; Sun, 20 Oct 2019 22:41:52 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a8.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, 20 Oct 2019 22:41:52 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cellar-Plucky: 7e472491109255bb_1571611312230_1715494973 X-MC-Loop-Signature: 1571611312230:1356925046 X-MC-Ingress-Time: 1571611312230 Original-Received: from pdx1-sub0-mail-a8.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a8.g.dreamhost.com (Postfix) with ESMTP id D24B797EDA; Sun, 20 Oct 2019 15:41:46 -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=Uvwmg9r6JTGr3vqyufbLIz/qFEE=; b= Qd3fM5QSsVCN8pzF0PiIQAGu6s1NMjAFR8ooDgQqa+WH/HDzFuj3NDz9+bP4NGIV RU3DriLf6RZ/WksdhBndlYKM1UiPc+ZKYjLeGqkzN/g5Q0Cu7ft8C8024bGOABfS JcwJMJ/dJMBTNwvUxFB1s4L7+0kBdQthVRzmniWPbgg= 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-a8.g.dreamhost.com (Postfix) with ESMTPSA id 58A2497ED7; Sun, 20 Oct 2019 15:41:44 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a8 In-Reply-To: <83v9sm8rs3.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Oct 2019 09:57:32 +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:169870 Archived-At: >> It seems before implementing this, first we need to decide >> what UI we could provide. This decision affects a set of commands >> that needs to be implemented for tab-line hscrolling. >> >> One variant is to allow dragging the tab-line by mouse where >> dragging to the left will scroll the tab-line to the left. >> But actually no web browser implements this behavior, they use >> dragging to move a tab to other place. >> >> So maybe better to have two arrow buttons: clicking on the left arrow >> will hscroll to the left. > > Agreed. As we already have fringe bitmaps to show truncation both on > the left and on the right, arranging for them to be displayed for > tab-lines will allow us to bind clicking on these to scrolling > commands. Trying to click on truncation arrows in fringe bitmaps of buffers signals: is undefined So we need to bind to a tab-line scrolling command for [tab-line right-fringe] keymap? Or maybe the tab-line could be dragged like dragging the horizontal scroll bar in horizontal-scroll-bar-mode? Or mouse-wheel could scroll the whole tab-line horizontally instead of switching tabs like it does now? >> Then we need two commands implemented in C: 'tab-line-scroll-left' >> and 'tab-line-scroll-right'. And later to add some keys like >> 'C-x >' bound to 'scroll-left'. >> >> These commands could work for the tab-line like hscrolling >> in the buffer works when 'auto-hscroll-mode' is 'current-line'. > > There's an important difference, I think: you want to scroll the > tab-line in tab-button granularity, not one character at a time. But > the principle and the main idea is the same, yes. I thought that granularity should be wider: scrolling by the window width, like 'C-x >' ('scroll-right') does, where default is window width minus 2. But maybe tab-button granularity is fine. The only problem is that I still studying the code to understand where to begin. Could you suggest in what function to implement all this scrolling?