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#73027: Fwd: 31.0.50; tab-bar-formal-global erased global-modeline-string's mouse hover/click action menu Date: Tue, 10 Sep 2024 09:38:06 +0300 Organization: LINKOV.NET Message-ID: <86bk0w3tf5.fsf@mail.linkov.net> References: <87y147v77e.fsf@gmail.com> <87plpjv67q.fsf@gmail.com> <86ed5zieqx.fsf@mail.linkov.net> <878qw78jvu.fsf@gmail.com> <86v7zawqvn.fsf@mail.linkov.net> <877cbqy0e2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="737"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 73027@debbugs.gnu.org To: Eval EXEC Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 10 08:44:19 2024 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 1snubr-000Ac5-48 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Sep 2024 08:44:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snubY-0002nH-B4; Tue, 10 Sep 2024 02:44:00 -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 1snubW-0002gn-Q4 for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 02:43:59 -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 1snubW-0006OP-3t for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 02:43:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=iR1o55s17JEi7ljdRbo4Fy0VVOcbDBaGWBn6TPORVyU=; b=RSl8SV2Q1Ey+ui5xj8iY9nGcnROS0IxWaiyjQqoXcKor8SkAhtoLVJPGWWw1itn8IuSrvX5FtXtSuk6J3FJl03PFriTVUijyE30gBv/onvIZH1zf5yYHUl3WjPd66W/GZ58rJAbkIuhXUa4arPtMgBLikIrXZ0Tqgj9j9bCjl/ZRTUth6BlZsMfs+J5zPbXHdCNDYmyCDdrgjzQEFVWnQs6zu8R7KajVS62pIdr/gVVN53nn2k45+/hq/2GFh7ZRvRjY8ZGeKgkstBgjXIeDKgrCNachoUM498WVL6EeqFPjBJNuTTw8aYtsnw1afXZZuanq7+qR9qp2xW4vOx9SkA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snuba-0008Sj-Km for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 02:44: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: Tue, 10 Sep 2024 06:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73027 X-GNU-PR-Package: emacs Original-Received: via spool by 73027-submit@debbugs.gnu.org id=B73027.172595060832472 (code B ref 73027); Tue, 10 Sep 2024 06:44:02 +0000 Original-Received: (at 73027) by debbugs.gnu.org; 10 Sep 2024 06:43:28 +0000 Original-Received: from localhost ([127.0.0.1]:34690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snub2-0008Rg-Fs for submit@debbugs.gnu.org; Tue, 10 Sep 2024 02:43:28 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:56371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snuay-0008RD-EM for 73027@debbugs.gnu.org; Tue, 10 Sep 2024 02:43:24 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id C7A881C0003; Tue, 10 Sep 2024 06:42:52 +0000 (UTC) In-Reply-To: <877cbqy0e2.fsf@gmail.com> (Eval EXEC's message of "Thu, 05 Sep 2024 16:23:33 +0800") 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:291542 Archived-At: >> Also please eval these calls and show their return values. > > 1. (mu4e--modeline-string) : > > #(" 🌀0/0 " 1 2 (help-echo "mu4e favorite bookmark 'Unread messages': Thanks for the reproducible test case. The problem is that the mode-line keymap can't be used without replacing the symbol 'mode-line' with 'tab-bar'. This means that this recipe doesn't work: ```elisp (defun mu4e--modeline-string () #(" 🌀0/0 " 0 5 (help-echo "mu4e favorite bookmark" mouse-face mode-line-highlight keymap (mode-line . (keymap (mouse-1 . mu4e-jump-to-favorite) (mouse-2 . mu4e-jump-to-favorite) (mouse-3 . mu4e-jump-to-favorite)))))) (add-to-list 'global-mode-string '(:eval (mu4e--modeline-string)) t) (defun mu4e-jump-to-favorite () (interactive) (message "DONE")) (setopt tab-bar-format (append tab-bar-format '(tab-bar-format-align-right tab-bar-format-global))) (tab-bar-mode) ``` But after remapping the symbol 'mode-line' with 'tab-bar', it works nicely: ```elisp (defun mu4e--modeline-string () #(" 🌀0/0 " 0 5 (help-echo "mu4e favorite bookmark" mouse-face mode-line-highlight keymap (keymap (tab-bar . (keymap (mouse-1 . mu4e-jump-to-favorite) (mouse-2 . mu4e-jump-to-favorite) (mouse-3 . mu4e-jump-to-favorite))))))) ```