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: Sun, 30 Oct 2022 20:50:38 +0100 Message-ID: <87k04h850x.fsf@gmail.com> References: <87wnhtfad7.fsf@gmail.com> <865ypcmx6s.fsf@mail.linkov.net> <87sfsgfd2b.fsf@gmail.com> <86mtimzt13.fsf@mail.linkov.net> <86fsock4f1.fsf@mail.linkov.net> <867d0lww7o.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="26142"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 30 20:51:35 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 1opELG-0006ZI-Jj for ged-emacs-devel@m.gmane-mx.org; Sun, 30 Oct 2022 20:51:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opEKU-0006a5-4g; Sun, 30 Oct 2022 15:50:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opEKS-0006ZD-5B for emacs-devel@gnu.org; Sun, 30 Oct 2022 15:50:44 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opEKQ-0005NJ-NE for emacs-devel@gnu.org; Sun, 30 Oct 2022 15:50:43 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id p16so540843wmc.3 for ; Sun, 30 Oct 2022 12:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=um0u/pZbS5ndCEQpwaSekVM1pKEAkjNAsrBi1oQRLI8=; b=ekCcuCrIn4+Sej8AEen0BFwKHXeWdXoA4QiSleTk5qzOGGPClICoMCiwObLQ49hTKk c5zfep2mpOGlzHjNDxHyR5oPkbY7VpHETwfz9W0RU8uszmFIgoT2rf5VOm18btRHNC0F 5P2h+YjQ8ZmvjXMm99QZxOJFqrClBiX+OcemxYAmR4+0XpQOQ1Vmd7H16ZGY9qkWYHsf /VsQ7wD8liTYRMwVQTpQ4qVVR95FFVYtHWBeG0h8byP3KY0F3GGcIzR6xXNw1rZk/eff +c3Htu0HQtjI0yRhsdz0U2nlGySPs2cngvFWOdyIhzoGvu/GMpK2r95o8FKKKauz5tiH OgQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=um0u/pZbS5ndCEQpwaSekVM1pKEAkjNAsrBi1oQRLI8=; b=VMWv0N1HfeQkRAvDkhGi7Hmrvdut9BeKO6z53faNB12MA3vWqAhE7r55FMUOOhOXT2 QlmpiLyyYkPR+4zlqtuJUOs4d6XQ//Lqv6sXFElOEvttwWtCUt9N1Lz7sU0KVABc5enK HGDQAmOlDKMAOf7+e05iBVBsWlCdxpY0WMQRUtuLlKP72T6xZwz5R2NQPg9wfKBBvnmw Na3m1lcwRNxEwinyKLE9QGLcMh/Lzb9MDHAz0GGKI5TM4Uppbst8c7nYnDup7CuZbK5m AfeE234o+B6PsBSuIDAbHZVNZdvpEnJXziXeiXQ59nrhODPTd2Ef6V4T8YGbKuLUx1Xo aWHg== X-Gm-Message-State: ACrzQf0oF9+kRNyxbX7F20ZnsTGX11+WdAfPmfxWKQwXH2cYGkiChGOt YGMMMKujIHKnXXBY36NtD03rfv7khdc= X-Google-Smtp-Source: AMsMyM6nf7F3Mo2BMx+xRnF/wrgrPBlb3R+RQqnP32gQ4jdD4U/0kfL0MIrgT2DpEDbuw/Zptj47ww== X-Received: by 2002:a1c:2743:0:b0:3b3:4066:fa61 with SMTP id n64-20020a1c2743000000b003b34066fa61mr16219335wmn.79.1667159440623; Sun, 30 Oct 2022 12:50:40 -0700 (PDT) Original-Received: from carbon.localdomain ([2a01:e0a:245:c850:98f5:429a:aa8e:95bb]) by smtp.gmail.com with ESMTPSA id u6-20020a05600c19c600b003c6f8d30e40sm5262993wmq.31.2022.10.30.12.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Oct 2022 12:50:39 -0700 (PDT) In-Reply-To: <867d0lww7o.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 27 Oct 2022 10:40:27 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=orontee@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, 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.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298830 Archived-At: Juri Linkov writes: > (...) I still see no other way to implement pixel-based > filling/justifying of tab names. So here is a prototype to try that > later will be adapted to tab-bar.el. It seems that's all we can do > for nicer-looking tabs. At least, it resizes tabs like in web > browsers. And the default value of tab-bar-tab-width-max is the same > as in Firefox. Thank you! I installed your code, and at first sight it works quite well and the resulting tab bar looks good. Firefox choose to change the foreground color on tabs end to make names easier to read. I guess it isn't supported by Emacs. So I use to set tab-bar-tab-name-function to tab-bar-tab-name-truncated and tab-bar-tab-name-ellipsis to t. It helps distinguish the separation between tab names. Is it expected for the truncation to not applying anymore with the code you sent? -- Matthias