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.devel Subject: Re: Tabs Date: Sat, 07 Sep 2019 23:28:46 +0300 Organization: LINKOV.NET Message-ID: <87a7bfg7u1.fsf@mail.linkov.net> References: <990000647.207452.1567431109138@mail1.libero.it> <871rwy8osi.fsf@mail.linkov.net> <1202539102.243582.1567500548055@mail1.libero.it> <87h85t41cl.fsf@mail.linkov.net> <1215808011.309641.1567585329369@mail1.libero.it> <87k1answzi.fsf@mail.linkov.net> <1448946011.413994.1567719646039@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="73606"; 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: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 07 22:41:47 2019 Return-path: Envelope-to: ged-emacs-devel@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 1i6hWk-000J1V-A8 for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2019 22:41:46 +0200 Original-Received: from localhost ([::1]:37094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6hWi-0003a2-Ey for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2019 16:41:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39059) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6hWY-0003Xd-4x for emacs-devel@gnu.org; Sat, 07 Sep 2019 16:41:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6hWW-0001x5-S5 for emacs-devel@gnu.org; Sat, 07 Sep 2019 16:41:34 -0400 Original-Received: from cadetblue.birch.relay.mailchannels.net ([23.83.209.28]:37868) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i6hWW-0001wD-JY for emacs-devel@gnu.org; Sat, 07 Sep 2019 16:41:32 -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 4FD77142230; Sat, 7 Sep 2019 20:41:31 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a53.g.dreamhost.com (100-96-35-59.trex.outbound.svc.cluster.local [100.96.35.59]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DBBCA1415C8; Sat, 7 Sep 2019 20:41:30 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a53.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.17.5); Sat, 07 Sep 2019 20:41:31 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Hook-Zesty: 75439c1a7beea4d2_1567888891130_500700036 X-MC-Loop-Signature: 1567888891130:2054433429 X-MC-Ingress-Time: 1567888891130 Original-Received: from pdx1-sub0-mail-a53.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a53.g.dreamhost.com (Postfix) with ESMTP id CBC8883A29; Sat, 7 Sep 2019 13:41:29 -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=a7qOdY3oNAQZy0CgPmElb5dehAU=; b= Ibnif6iLAu0Ma9wftsjAxxG1rZON2BkaRWI7AHFGRHg8sIad33DxaVj4BmRED14u Fqg2EcHobEn46L1J+mkb7gXzQjh89iytM1NlZ/EQqlFGeVp1/wiVGwkftLHFcIW4 JiaBRpaqhUzM189ETL2cmz3yRkWtqTOs6868RRc+YZg= Original-Received: from mail.jurta.org (m91-129-108-240.cust.tele2.ee [91.129.108.240]) (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-a53.g.dreamhost.com (Postfix) with ESMTPSA id CF1FB83A31; Sat, 7 Sep 2019 13:41:27 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a53 In-Reply-To: <1448946011.413994.1567719646039@mail1.libero.it> (Angelo Graziosi's message of "Thu, 5 Sep 2019 23:40:45 +0200 (CEST)") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgudehvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrvdegtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrddvgedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprghnghgvlhhordhgtdeslhhisggvrhhordhithenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239932 Archived-At: >> So now I implemented support for nox builds as well, and pushed >> to the branch. Please try to recompile. > > Done. It builds; tested on WSL. A few considerations. Thanks for testing and considerations for improvement. > Usually, when I start nox Emacs it loads the last buffer I worked on > previously because I have '(desktop-save-mode 1)'. Call this buffer > foo.txt. The same occurs with your branch. So I do 'M-x > global-tab-line-mode' and foo.txt is in a tab, and near the tab a '+'. > > So, I don't see the other buffers saved in desktop. > > When I click with mouse the '+' a menu shows up whose items are just those > buffers! I can select another buffer in this menu only with UP/DOWN > keyboard key and NOT with the mouse: someone of you should ad this and also > to work with File Edit Options... menu and their items (now one has to do > F10 and move with arrows...) Indeed F10 doesn't allow selecting menu items with the mouse, neither ('mouse-buffer-menu') on which the '+' is based. I don't know whether it's possible to implement mouse support for these menus. > In this way, I can have other desktop saved buffers in tabs.. but > quitting Emacs, the next time I have to repeat all those > steps... which is annoying. Actually after restoring the desktop, all previous buffers will appear in tabs if you use the same window. So currently it works in that way that allows you to select which buffers you want to see in the tab-line of the current window, and restores these selected buffers in the same window after restoring from the desktop file. > I think one wants that starting Emacs all those buffer are in tabs. I can't imagine how to display all available buffers in tabs. Usually I have dozens of buffers visited in the same session, and fitting all them in the same tab-line would be impossible. > I have built the same source of the branch on Windows. > > Here there is an issue before using M-x global... : the mouse does not work > on the tool bar. Indeed I modified my init.el to not use the tabbar-ruler > from MELPA and when I tried to save it clicking on the tool bar icon, 'save > current buffer...', the minibuffer showed "mouse-1 is undefined". This could be fixed by refactoring tool-bar Windows code. > Any way, C-x C-s helped me and after restarting Emacs I noticed the following. > > Only a few buffer in tabs, just to fill the window width, and this is > good. But how are chosen the buffer to shows in tabs? apparently it > seems at random, The tab-line is centered around the current tab, so currently you can scroll the tab-line by clicking on the leftmost/rightmost tab. Although better scrolling could be implemented too. > and beside this, their name are only partially visible, too little. Maybe we should not truncate tab names at all. But as you wrote in another mail: > Just a few suggestions to make these tabs more friendly.. > > In tabbar-ruler from MELPA (see attachment), the tab line starts with a tab > and the tabs adapt their length to the buffer name even if > uniquify-buffer-name-style is set to forward: in this case the tab line > contains fewer tabs or just one tab (consider a buffer with name : > emacs-master-w64-x86_64-20190903_135542-release-build.log.bz2...). Only the > last tab could be 'truncated'. Is it really good to show just one long non-truncated tab name? Maybe we should add an option for the tab width. > In any case, one could scroll between tabs using the L-R arrows on the > tab line (see attachment)... We could add such scrolling as an option but I doubt if this is the easiest way of finding and selecting the tab.