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.bugs Subject: bug#65554: 30.0.50; help-echo string for truncated tab-bar names is not viewable Date: Sun, 27 Aug 2023 19:11:41 +0300 Organization: LINKOV.NET Message-ID: <86zg2cikpe.fsf@mail.linkov.net> References: <87zg2d396h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18695"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 65554@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 27 18:22:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qaIWo-0004iC-Fc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 18:22:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaIWX-0002D4-SO; Sun, 27 Aug 2023 12:22:01 -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 1qaIWT-0002Av-9o for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 12:21:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qaIWT-00007h-0n for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 12:21:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaIWY-0007yD-Rh for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 12:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2023 16:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65554 X-GNU-PR-Package: emacs Original-Received: via spool by 65554-submit@debbugs.gnu.org id=B65554.169315327930508 (code B ref 65554); Sun, 27 Aug 2023 16:22:02 +0000 Original-Received: (at 65554) by debbugs.gnu.org; 27 Aug 2023 16:21:19 +0000 Original-Received: from localhost ([127.0.0.1]:46016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaIVq-0007w0-Ka for submit@debbugs.gnu.org; Sun, 27 Aug 2023 12:21:18 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:60825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaIVn-0007vi-OY for 65554@debbugs.gnu.org; Sun, 27 Aug 2023 12:21:17 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 7C0576000A; Sun, 27 Aug 2023 16:21:01 +0000 (UTC) In-Reply-To: <87zg2d396h.fsf@gmail.com> (Visuwesh's message of "Sun, 27 Aug 2023 00:47:26 +0530") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268563 Archived-At: > If you set tab-bar-tab-name-function to use tab-bar-tab-name-truncated, > the latter function sets the help-echo string of the tab-bar name to the > full name Actually the help-echo string with the full name is not viewable even if you remove the :help lines from tab-bar--format-tab. I propose to move truncating the name from tab-bar-tab-name-function to tab-bar-tab-name-format-function. tab-bar-tab-name-format-function was added later, so initially it was possible to implement truncation only in tab-bar-tab-name-function. > however, tab-bar--format-tab which is used by > tab-bar-format-tabs overrides this help-echo string with "Current tab" > and "Click to visit tab". If I remove :help plist items from > tab-bar--format-tab, then I don't get the help-echo string that was set > by tab-bar-tab-name-truncated but what the tab looks like in Emacs. When truncation will be in tab-bar-tab-name-format-function then the useless help-echo strings in tab-bar--format-tab could be replaced with help strings that display the full names.