From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: About tab-line-mode Date: Tue, 01 Feb 2022 21:43:28 +0200 Organization: LINKOV.NET Message-ID: <86iltymkyn.fsf@mail.linkov.net> References: <1528298012.261598.1643657612891@mail1.libero.it> <86a6fbk5qs.fsf@mail.linkov.net> <427812869.274300.1643666622835@mail1.libero.it> <323069587.276853.1643675461558@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33028"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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-mx.org@gnu.org Wed Feb 02 02:49:18 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nF4lp-0008UE-Qy for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Feb 2022 02:49:17 +0100 Original-Received: from localhost ([::1]:60794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nF4lo-0005tz-Cw for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Feb 2022 20:49:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEz5L-0001Et-26 for emacs-devel@gnu.org; Tue, 01 Feb 2022 14:45:12 -0500 Original-Received: from [2001:4b98:dc4:8::227] (port=38651 helo=relay7-d.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEz5I-0004Dy-Nt for emacs-devel@gnu.org; Tue, 01 Feb 2022 14:45:02 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id CAE9920005; Tue, 1 Feb 2022 19:44:51 +0000 (UTC) In-Reply-To: <323069587.276853.1643675461558@mail1.libero.it> (Angelo Graziosi's message of "Tue, 1 Feb 2022 01:31:01 +0100 (CET)") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4b98:dc4:8::227 (failed) Received-SPF: pass client-ip=2001:4b98:dc4:8::227; envelope-from=juri@linkov.net; helo=relay7-d.mail.gandi.net X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:285756 Archived-At: >> Thanks for suggestions! I added this to the init file, an it seems to work >> >> ;; Native buffer tabs setup >> (global-tab-line-mode 1) >> >> (setq tab-line-tabs-function 'tab-line-tabs-buffer-groups) >> (setq tab-line-close-tab-function 'kill-buffer) >> >> (set-face-attribute 'tab-line nil :height 1.0) >> >> Is that what you had in mind? Exactly. > I have a few more questions. > > a. When I am in a mode with more tabs, selecting one tab it becomes the > most left tab, near the mode button. Is there a setting to left the tab at > its position? How are the tabs ordered? When I have multiple tabs open in > a browser they remain there, don't move to the most left position just > because I have selected one of them.. There is a variable for sorting tabs too, so you could set it to e.g.: (setq tab-line-tabs-buffer-group-sort-function (lambda (a b) (string< (buffer-name a) (buffer-name b)))) > b. When a buffer is modified and not saved, one expects the tab > changes some of its elements, usually a "star" shows up or the buffer > name change color. Is there a setting to have this? There is a setting for this as well. When the list in 'tab-line-tab-face-functions' contains the function 'tab-line-tab-face-modified' then the modified file buffer is highlighted with the face 'tab-line-tab-modified'. This is enabled by default. But I noticed that this is not supported when 'tab-line-tabs-function' is customized to 'tab-line-tabs-buffer-groups'. Now this is fixed in master, so you can have the cake and eat it too. > I am afraid of all this questions but I'm almost done.. Thanks for the questions.