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: Mon, 28 Aug 2023 09:53:38 +0300 Organization: LINKOV.NET Message-ID: <86bkerhd3h.fsf@mail.linkov.net> References: <87zg2d396h.fsf@gmail.com> <86zg2cikpe.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="33475"; 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 Mon Aug 28 08:55:23 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 1qaW9j-0008Wj-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Aug 2023 08:55:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaW9O-0005Vq-VC; Mon, 28 Aug 2023 02:55:04 -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 1qaW9J-0005VT-HS for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 02:54: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 1qaW9I-0004rh-Cm for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 02:54:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaW9O-0000S0-34 for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 02:55: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: Mon, 28 Aug 2023 06:55: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.16932056841706 (code B ref 65554); Mon, 28 Aug 2023 06:55:02 +0000 Original-Received: (at 65554) by debbugs.gnu.org; 28 Aug 2023 06:54:44 +0000 Original-Received: from localhost ([127.0.0.1]:46762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaW96-0000RS-GJ for submit@debbugs.gnu.org; Mon, 28 Aug 2023 02:54:44 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:54287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaW94-0000RF-B2 for 65554@debbugs.gnu.org; Mon, 28 Aug 2023 02:54:43 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id C33831BF20B; Mon, 28 Aug 2023 06:54:28 +0000 (UTC) In-Reply-To: <86zg2cikpe.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 27 Aug 2023 19:11:41 +0300") 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:268605 Archived-At: >> 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. Now the help strings are displaying the full tab names. Next I could rename tab-bar-tab-name-format-function to tab-bar-tab-name-format-functions with the default value composed from the code fragments of tab-bar-tab-name-format-default: '(tab-bar-tab-name-format-hints tab-bar-tab-name-format-close-button tab-bar-tab-name-format-face ) Then you will be able to customize it to: '(tab-bar-tab-name-format-truncate tab-bar-tab-name-format-hints tab-bar-tab-name-format-close-button tab-bar-tab-name-format-face ) That first will truncate the tab name, then add numeric hints to the truncated name, then add the close button, then put faces on the final string that will be displayed on the tab bar.