From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.devel Subject: Re: Fix width tabs Date: Fri, 18 Feb 2022 15:45:48 +0100 Message-ID: <87sfsgfd2b.fsf@gmail.com> References: <87wnhtfad7.fsf@gmail.com> <865ypcmx6s.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20706"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 18 15:48:39 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 1nL4Yo-00059V-1k for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Feb 2022 15:48:38 +0100 Original-Received: from localhost ([::1]:40504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nL4Yn-0004j1-2x for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Feb 2022 09:48:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nL4WA-00023i-SQ for emacs-devel@gnu.org; Fri, 18 Feb 2022 09:45:55 -0500 Original-Received: from [2a00:1450:4864:20::434] (port=42931 helo=mail-wr1-x434.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nL4W9-0006Oj-EE for emacs-devel@gnu.org; Fri, 18 Feb 2022 09:45:54 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id h6so14957834wrb.9 for ; Fri, 18 Feb 2022 06:45:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=10pUSPDMab7X0sKu76AidyuJypYpZoqx5awPPOtNukg=; b=YCnGlbKyKCGyeR9hw0SY/N77VgcyCVz0tgu+gyi3aHW5ZB08+4mD+QXkhRzuN05jE0 dMKMM4hPy0jch85/BP3uWjKEidgVszgMDQZuG6s2/i0nLjAuDxyK3sJo7UWNiOE4MErx MBlC6lPohivbQyOgsZ6FuI/jJ3069Uf8SALmsovFUv32j4lBXN+YWODIWHoOxqCGEGCc pqaim0GvadeNnqernjykXHxciJxzLUbHs6YEfJiZ9DjaJKeILfABTPnhtjsdzgIrOBdo kx8EJWCkcyZKRd6mstygG1CvyG9EVceFJPRbvov16EElT8GjSacButaDNjJ+gP3Z2Uaf 4bUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=10pUSPDMab7X0sKu76AidyuJypYpZoqx5awPPOtNukg=; b=Qm0tLygVWJG53Ey2eHjRf0SffGF20k071UWnn5ttlmCXaUP1swGjVov7BUMeKAd5rV yfTJ1VuzNZUMXiEvIlz94QanqP6aERAFYs//KJ+EJH6wC3beuSD8/bVFCC/hmDk0oK+M qojETCG7+mp/BGFSQHOZjAXRBf2J5MAL7FClelVcqhv674WihsVpPmzyp6ehabLPZosI q8/vZoN8ls3dxKxRzKdv4I+VkfngYeQTl5kgblrXaWZFXu+3UiUrJBy6F+QPFF9nG03E UZnX6bzNed8TP16aylaw2Bc1piLr3keyCxHsGGCx4YrFae7QjF9IfjNp/ZsTdRFAOTg0 Pbfg== X-Gm-Message-State: AOAM532gEkGM0meScOn0opGLylxaEBs+c2TUHKri8QPB7TkSvqVJh5wb q4evBVkbZt7yUHumkmt/7VI0SUidWyg= X-Google-Smtp-Source: ABdhPJyvxtz9TyAcWiy1W1T3WW4ET7dJ2OVqtlnbgIaX7//t9/CHrd950U+xroS4UUwlrh3RyVL4VA== X-Received: by 2002:a5d:4d43:0:b0:1e6:8089:f535 with SMTP id a3-20020a5d4d43000000b001e68089f535mr6564667wru.118.1645195551108; Fri, 18 Feb 2022 06:45:51 -0800 (PST) Original-Received: from carbon.localdomain ([2a01:e0a:245:c850:98f5:429a:aa8e:95bb]) by smtp.gmail.com with ESMTPSA id bg26sm4824044wmb.48.2022.02.18.06.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 06:45:50 -0800 (PST) In-Reply-To: <865ypcmx6s.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 18 Feb 2022 09:49:15 +0200") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::434 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=orontee@gmail.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, 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:286441 Archived-At: Juri Linkov writes: >> When a tab has multiple windows, its name is updated depending on >> current buffer name. Switching window (C-x o) results in the tab being >> renamed. > > This problem doesn't exist when tab-bar-tab-name-function > shows all window buffers with tab-bar-tab-name-all. > So a possible solution is to enable this by default. Thanks I didn't knew tab-bar-tab-name-all. Unfortunately visiting a new window expands the tab name and thus there's the same problem. > (...) >> But I've not found a way to do that with current options. Is it >> already possible? > > Yes, it's possible to do by writing a new function for > tab-bar-tab-name-function. There was a similar function > for fixed tab widths in tab-line.el, but after discussions > it was removed because it wasted too much screen space > with empty spaces used to adjust for fixed widths. I don't understand how it could waste more space than the tab-bar-tab-name-all function you mentionned. >> My understanding is that it's the default behavior in other applications >> like Firefox. Is there good reason to have different default? > > The good reason is to have the more compact tab bar. > If you want, you could try experimenting by writing a function > for tab-bar-tab-name-function with padding every tab name > by proportional amount of space. I'll try this. Thanks a lot! -- Matthias