From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: About tab-line-mode Date: Wed, 2 Feb 2022 17:12:47 +0100 (CET) Message-ID: <1850745879.491353.1643818367013@mail1.libero.it> References: <1528298012.261598.1643657612891@mail1.libero.it> <86a6fbk5qs.fsf@mail.linkov.net> <427812869.274300.1643666622835@mail1.libero.it> <323069587.276853.1643675461558@mail1.libero.it> <86iltymkyn.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20638"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 02 18:52:22 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 1nFJnq-00059f-JP for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Feb 2022 18:52:22 +0100 Original-Received: from localhost ([::1]:36774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFJnp-0006S9-DY for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Feb 2022 12:52:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFIFf-0003xU-EU for emacs-devel@gnu.org; Wed, 02 Feb 2022 11:13:03 -0500 Original-Received: from smtp-32-i2.italiaonline.it ([213.209.12.32]:50823 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFIFY-0004jF-IR for emacs-devel@gnu.org; Wed, 02 Feb 2022 11:12:58 -0500 Original-Received: from oxapps-15-089.iol.local ([10.101.8.99]) by smtp-32.iol.local with ESMTPA id FIFTnISdeum5HFIFTn8A2i; Wed, 02 Feb 2022 17:12:47 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1643818367; bh=nvi3BlgiRYn69GFEaFTtoUEnCNLyLh5KEbv/mCkVdug=; h=From; b=S8nTbkXmD8E9DmPz+41/FkeAv8ewDpdsKbFsA4nf8CF6hijR/TM8C9iuyBI7MW2z1 /1GKBC01Wy43+bPP1CgbwkYtZX5rHB7rZbJJMtJ6Wtwoxq/5MDfP6U6/mD2hfGInb5 pfm5YaYuA8wyQgj5189l5WcW6jn61xOjJ03gq8HoNKv3uFVNlc69FxZ5V/jZuHxVIM gIhky9t7q3wF8JsX41y/4udZjs6QRqPxI7AR5/rhcshA3aZTND0LpbaSOgJYkIh73+ 1JO72V8rpJnU6yZDmtXKNPoj+P5Ke7pgCQrfPJnhq6y1e6DnM96AXbCZ9j63bDo3AP rvUnzM0RJNndw== X-CNFS-Analysis: v=2.4 cv=G5fZr/o5 c=1 sm=1 tr=0 ts=61faad7f cx=a_exe a=rVXA2fkHzC1lZtxmS6DibQ==:117 a=8iunbpUoZPQA:10 a=IkcTkHD0fZMA:10 a=RyHAtZjQuqYA:10 a=jz58yv0OiKVID2LQU5MA:9 a=QEXdDO2ut3YA:10 In-Reply-To: <86iltymkyn.fsf@mail.linkov.net> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.5-Rev34 X-Originating-IP: 212.171.15.132 X-Originating-Client: open-xchange-appsuite x-libjamsun: LOdpgIMtyWTAcPGD8QzdlNYEoqtClbxJ x-libjamv: rzVUkB0uk8k= X-CMAE-Envelope: MS4xfJmF9r0ZEexE16Xbs0ckjVWVcF3FN++3jmJle4q2rcoKq1cfAnTyVc3SVgW74KKnbk9g5QNhhesVFM164tJ2qRzHDV6cW4IEOS7pGGlFkfoDeyCCTxMy TISDLppTsF1QEEaKcOV8bqGtBmBoWzCOZihXrBVlSrDgjCPhruFuE0HfXoy1TDxsylNPfGKCtZSmxDXM4EkI7OorLQHhqgzuCuhpkoqlNSuTS+hph53VW3Tb Received-SPF: pass client-ip=213.209.12.32; envelope-from=angelo.g0@libero.it; helo=libero.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:285798 Archived-At: > Il 01/02/2022 20:43 Juri Linkov ha scritto: > > > >> 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. Thank you very much! I suspected you had implemented this and for some reason I di not find it. I have built master and it works as expected! > > > I am afraid of all this questions but I'm almost done.. > > Thanks for the questions. I think I have finished! Ciao, Angelo.