From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Tab-bar autoclose question Date: Sat, 11 Jul 2020 11:50:56 +0200 Message-ID: <20200711095056.eoertrs4csowcfuq@ergus> References: <32f6a2ce-e30f-059f-dcd4-233d666a10a1@yandex.ru> <87tuzqmskt.fsf@mail.linkov.net> <87a71hv584.fsf@logand.com> <87k10jerlv.fsf@mail.linkov.net> <708761156.1474071.1591793033632@mail.yahoo.com> <874kripr7a.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31634"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 11 11:51:40 2020 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 1juCAV-00089W-RI for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jul 2020 11:51:39 +0200 Original-Received: from localhost ([::1]:58080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juCAU-00050j-UV for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jul 2020 05:51:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juCA0-0004bx-Ff for emacs-devel@gnu.org; Sat, 11 Jul 2020 05:51:08 -0400 Original-Received: from sonic313-13.consmr.mail.bf2.yahoo.com ([74.6.133.123]:44953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1juC9v-00069N-51 for emacs-devel@gnu.org; Sat, 11 Jul 2020 05:51:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1594461061; bh=Gmo4sVg/CR+6NJokkghTJSqw/hpXT4AQnAHAA76oSr0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=NWLnHRTSUKe/mEUXs4GaqjcLm4MzF+TaWkygNJaEcyKW8KYL6Lm3RUMkWwY01W72bg8DT+EDTFx9vkQJGutI+M5dgbGhMO/VzF7Osvc4l+4418S6bMqva81wxHn0yY1IERZ4RRsysODl1ZlX3Y2U2o5GdywIs07cRmVWSscEpxnTA+pVeFTcMjoxG7N9TG7U7zl5DySlCuBsfuZ6eBVJyVcWQgIt/d1ViaIVO9z3GinZuL1duaifL6vN/27NuYmWI20EsmrJfIn58BKnx2SHuSD2qMlMFAAjI45CCPqFamrV7RV3b6xNo32jQemSEPpYdeEGZz6i4YSfWT9IEbo2Nw== X-YMail-OSG: M2ewE3kVM1mqQPwCza6m4AotUSIwzqQ5cFkRc7RvhTN64Ufpv8cA5YjH6X85ifT IewNhehJN2PBpnKSX.KRAesGtzAavAQQAp14szuxU_W0rG5p1Tkv0HGgP_KsBIqAeqztMu8Y2Cve R34W5jauyIkRQUf8W9O3BbeNHYl0qB4ZIiv.s1jtz_c0Sejf8iWY.xssAArrc3B9fSHlFwOgfnQR WLmuBzRi33A3DeQHBHh8ZDCKFGNB_ycKNTHAXIocuNZ8Xc_qIIFbsuhAOOO01Pbeu4mhQOhzb0Cw QPgsWuYQEIHIRD8XgSrxSMkUHxs1rBj5GmaBEiWogBiBZw0vuvxy9.MVVY8n4l1Z83aWcMvhi.UW U6XfFWbCU4pJCvk8F21jhA3fLMSGKBXuE29jbLmNlokXICr48_hMONIuxTHjt893ntBg3Q1_e4n8 CnWh9.9qQS7EH2UFTEluuUslvBUe49xiaTjjceDtXW08yTc0gBaG6osoi8RN3QX0_vUyARVq6nPv 6gsJDEpxnKmBmmHP5JE1BuCYG1e1yOGuF8pD46YzdkB3_.0H_.nuIU2nNRDUkwsfgAvZra0Qgq8C pzGDwWl3snlqt4t8AguhffIq_aObCvwesJ210Z_d2hdf2Jzt.RIJXNAPcmcsFxD0_qS8PVDXhAxI TpfNqRjYNz2BSU2D3zC2ewGB9AxSxDFMbCOgeK0e6oGoDJUa3aMlXBTYqSFU9PnaHhTKxeKEKWxe dXmvK2pacli1XJo1itM8Cp6ZixS7B.dCgjl5LJyH8eVH7uNXj7ib0IjNirCGxVds5KWCyN.ArpHE dTM7AB7kusq3OydUr6DG914d9.WvHjkXnBMiDkKhbF Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Sat, 11 Jul 2020 09:51:01 +0000 Original-Received: by smtp430.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 59b4a1f0985ef4747c81fb09ae5f1943; Sat, 11 Jul 2020 09:50:58 +0000 (UTC) Content-Disposition: inline In-Reply-To: <874kripr7a.fsf@mail.linkov.net> X-Mailer: WebService/1.1.16271 hermes_aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.133.123; envelope-from=spacibba@aol.com; helo=sonic313-13.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/11 05:51:01 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252857 Archived-At: On Thu, Jun 11, 2020 at 12:55:13AM +0300, Juri Linkov wrote: >> I am wondering if maybe there is a simple method to autohide/autoclose the >> tabbar in some condition. For example, when I close all the other tabs and >> there is only one. >> >> Is it a straightforward/out_of_the_box method to customize that? > >Please try to customize ‘tab-bar-show’ to the value ‘1’ >that means to hide the tab-bar when it has only one tab. > Hi Juri: I tried this and it works pretty fine auto hiding the tab-bar. But I have an issue. when I add this to my init file: (setq-default tab-bar-show 1) then, if I open a tab with `C-x t 2` it shows the tab-bar and the new tab, but I don't get bindings like `C-TAB`; but I get the `C-x t o` After some checks I see that the problem is that in spite of I see the tabs, the variable tab-bar-mode is still nil. Any help? Thanks in advance, Ergus.