From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: 31.0.50; tab-bar-formal-global erased global-modeline-string's mouse hover/click action menu Date: Wed, 04 Sep 2024 17:31:26 +0300 Message-ID: <868qw75w3l.fsf@gnu.org> References: <87y147v77e.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15046"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eval EXEC Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 04 16:33:03 2024 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 1slr4A-0003fo-6M for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Sep 2024 16:33:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slr3T-0002vL-TD; Wed, 04 Sep 2024 10:32:19 -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 1slr34-0002HA-Hz for emacs-devel@gnu.org; Wed, 04 Sep 2024 10:31:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slr34-0003uO-6n; Wed, 04 Sep 2024 10:31:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=feIXKRuqOqWEs1NEWy9DPRTEU1ETItEsmoU6wpFMwuk=; b=IvWYfWcVshfg Vlg24hSIFOZJtgxvTQtGAXSHXiNwxKWJJ4f+DYZ40ETpTW9W1zMVLTzqAkxFspEaDdNg/OEnPRx35 jpYdAzgPFEm3Vtrik61GaPMeFbOM3TDePBfxFHKpB9D3JykFiSfDaUD8PmejAMjXPCvAXQJBBbB0C XqxfyZLsfrIEPuUmtGwywQ3eiqA8dKQMsG1kd8a4xVhoiVF8/c/4KScsFwxhBOMr9P1HOGCail/9O 79I0KtFiwlyNYCqrSa2qUYfgjhJ23zq8so2zhYJfyrJnlhqywqeSfpFogi2uVH5D9OphTCzrDMrm8 wgnvCTcq1+4lFUa3Rl3TOw==; In-Reply-To: <87y147v77e.fsf@gmail.com> (message from Eval EXEC on Wed, 04 Sep 2024 22:12:21 +0800) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323362 Archived-At: > From: Eval EXEC > Date: Wed, 04 Sep 2024 22:12:21 +0800 > > I'm using tab-bar-mode, and I've included `tab-bar-format-global` in `tab-bar-format`. This displays `global-mode-string` on the tab-bar. > > ```elisp > (setq-default tab-bar-format > tab-bar-format-menu-bar > tab-bar-format-history > tab-bar-format-tabs > tab-bar-separator > tab-bar-format-add-tab > tab-bar-separator > tab-bar-format-align-right > tab-bar-format-global) > ``` > > However, in `global-mode-string`, I have `mu4e`. The tab-bar seems to remove the hover and mouse click actions from `global-mode-string`. > > It appears that the issue is related to the use of "ignore": > ```elisp > (defun tab-bar-format-global () > "Produce display of `global-mode-string' in the tab bar. > When `tab-bar-format-global' is added to `tab-bar-format' > \(possibly appended after `tab-bar-format-align-right'), > then modes that display information on the mode line > using `global-mode-string' will display the same text > on the tab bar instead." > (mapcar (lambda (string) > `(global menu-item ,(format-mode-line string) ignore)) > global-mode-string)) > ``` > > If I remove `tab-bar-format-global` from `tab-bar-format`, the `global-mode-string` displays on the mode-line, and the `mu4e` indicator in `global-mode-string` works with mouse hover and click. I believe that if `global-mode-string` is displayed on the tab-bar, its items should also support mouse hover and click. > > What do you think? How can I quickly hack the tab-bar to enable mouse hover and click for `global-mode-string`? Thanks, but this should have been sent to bug-gnu-emacs@gnu.org, where it would be picked up by our bug tracker.