From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh 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 19:33:32 +0530 Message-ID: <87msyb2rij.fsf@gmail.com> References: <87zg2d396h.fsf@gmail.com> <86zg2cikpe.fsf@mail.linkov.net> <86bkerhd3h.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65554@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 28 16:04:35 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 1qacr4-000Aa0-4R for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Aug 2023 16:04:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qacqg-00085d-M9; Mon, 28 Aug 2023 10:04:10 -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 1qacqb-00085N-K0 for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 10:04:07 -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 1qacqS-0006HB-1L for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 10:04:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qacqX-0006cI-TE for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 10:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Aug 2023 14:04:01 +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.169323142925410 (code B ref 65554); Mon, 28 Aug 2023 14:04:01 +0000 Original-Received: (at 65554) by debbugs.gnu.org; 28 Aug 2023 14:03:49 +0000 Original-Received: from localhost ([127.0.0.1]:48722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qacqK-0006bm-PC for submit@debbugs.gnu.org; Mon, 28 Aug 2023 10:03:49 -0400 Original-Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:49497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qacqI-0006bU-Si for 65554@debbugs.gnu.org; Mon, 28 Aug 2023 10:03:47 -0400 Original-Received: by mail-pl1-x642.google.com with SMTP id d9443c01a7336-1c06f6f98c0so25148195ad.3 for <65554@debbugs.gnu.org>; Mon, 28 Aug 2023 07:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693231414; x=1693836214; h=content-transfer-encoding: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=sqW8pX100mK8eCK1N5frpbuPvkEgWqxAkJK5i9j2kIc=; b=IfiI851p+P+jQQQSuLXjGQM5OA4I1+O1wEIpbDUt8rjbTjkVKhMgya06cp+jUel+4E sU6rScO6549NE2LQIU2yS48KKixajzzvNlL/OW5nnyKuAKC1jwrjnfzoXMNzEYOs0VIh yUF3s1GtgFbct7Hipk4oXqyKswu5BKP+zLt7mcJPGCcQUTpjzsHyTd+VOFH5IH7xNPJ2 xrdy4QRJVqPARt1+C/1gQcxkBL8ZxH8gC30i1CzOg4gBhpPGldJFBK1yZ1rLcOmeKFis osXaITQrXm05h1XZ6+f+r++BCaPHjjuqTsU4FmSUaEiUfTwbYtgIPoPU6vdybrrr0TET WQVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693231414; x=1693836214; h=content-transfer-encoding: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=sqW8pX100mK8eCK1N5frpbuPvkEgWqxAkJK5i9j2kIc=; b=D9tJrGNgF77ZaGtaeadkn1hSpLYHrhUlw03cTfOyM3yUnWyim7Of1yrpW7mjI4awMD aHa9odEE2KJGlmzoGXJUBkee1za7rFu3eM04XYYZOza67LE1XzU9QPCuociEl00n/fZE TMiQ3Yl3FTDokU8H1ajhcGPNZVG/mNytItBTIM/tJBP3jeAg5Rr5RGha8NeTsNBFY/Oc 9nbczDqfOuyZ7KyxMj1l1lKtqSHjKQHwZTbGd4o7L42iuQI/kknP7tGpnQIbf5erGF1Z Jjwb2LViQWZiinh/51B+/VtySYm5ORwx6xgBM6pUlQAYc09Eut9gUC9Mt2N+SxolzxxN rKwg== X-Gm-Message-State: AOJu0YzXsg7c2Fqv6ryxRSHhNDAG+qODSxG5x5IDxMVY6HaeLIFzSnLc T58gYAaKe511sRbFeuDMW64= X-Google-Smtp-Source: AGHT+IFfSkDY9nUiGuENZWhcd2fFbEgp8YjFQY5uRtJITpLngGlrmMSWOZ4Z506YsyPs3WumjgeiYA== X-Received: by 2002:a17:903:26cb:b0:1bc:98dd:e857 with SMTP id jg11-20020a17090326cb00b001bc98dde857mr24140511plb.38.1693231414221; Mon, 28 Aug 2023 07:03:34 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id a11-20020a170902b58b00b001bc9bfaba3esm7402992pls.126.2023.08.28.07.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 07:03:33 -0700 (PDT) In-Reply-To: <86bkerhd3h.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 28 Aug 2023 09:53:38 +0300") 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:268631 Archived-At: [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE=86= =E0=AE=95=E0=AE=B8=E0=AF=8D=E0=AE=9F=E0=AF=8D 28, 2023] Juri Linkov wrote: >>> 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. I customised tab-bar-tab-name-function to -truncated but it still shows the truncated name in the tooltip. If I change -format-function to -truncated, then I don't see the truncation in the tab name... I am changing the functions as per the choices in the Custom interface. > 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 st= ring > that will be displayed on the tab bar. That would be much more convenient, and make the customisation around the tab name a lot less confusing.