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.bugs Subject: bug#73027: Fwd: 31.0.50; tab-bar-formal-global erased global-modeline-string's mouse hover/click action menu Date: Sat, 21 Sep 2024 12:15:24 +0300 Message-ID: <86o74h4bbn.fsf@gnu.org> 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> <86bk0w3tf5.fsf@mail.linkov.net> 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="29165"; mail-complaints-to="usenet@ciao.gmane.io" Cc: execvy@gmail.com, 73027@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 21 11:15:58 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 1srwDd-0007TJ-Uz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Sep 2024 11:15:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srwDY-00072J-47; Sat, 21 Sep 2024 05:15:52 -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 1srwDO-00071v-Op for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:15:50 -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 1srwDO-0006li-3W for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:15:42 -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:References:In-Reply-To:From:Date:To:Subject; bh=hapHMOST3quAGmH+Ic4VQyngvn1ikpZWFqJ4JK13AmQ=; b=EVWYSExHZ/3sN6wJiQ2PF0IwDiqZwUoSWaLots/SFmfMiAAbauhYXFWW30OSxTuNeG6EeR/0b3EehAS0D0s3+NW0Xpwv3v+5lFGQV7SGmqDpxDv0WeK3StGPaL3kIU4isV93IJjUhmQXJ4cL2N2JU0130rx7uXPJTrisXI/Avz7iIlTz4iZoEoZb3HyCYFJGeTV+XJeYrjf0KeKhQiqJfFsDMOWF9Fb10gdffej3fRauJ7YvQffTMjdg7nTU9la4WKg/olqRxd6MXDU7pLZWcUdpTArSS5crz3NT5NsLmAPo4r3CZfaHmfP6DBYWsYynKnFxW0LasI441B9V12o0lQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srwDi-00025l-0b for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Sep 2024 09:16:01 +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.17269101548020 (code B ref 73027); Sat, 21 Sep 2024 09:16:01 +0000 Original-Received: (at 73027) by debbugs.gnu.org; 21 Sep 2024 09:15:54 +0000 Original-Received: from localhost ([127.0.0.1]:37169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srwDa-00025I-Ba for submit@debbugs.gnu.org; Sat, 21 Sep 2024 05:15:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srwDY-00024z-9w for 73027@debbugs.gnu.org; Sat, 21 Sep 2024 05:15:52 -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 1srwD8-0006kw-Tb; Sat, 21 Sep 2024 05:15:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=hapHMOST3quAGmH+Ic4VQyngvn1ikpZWFqJ4JK13AmQ=; b=nY+wgR7EAqMdziU6KpG/ qinNKuzDNYBxms4OoAC5hTeoTcE5y2aEIF/P9UhQomvl/+mnHgX6kgcJUWL5ox/uet+gyLursL8/y F+nXIdLnPFSIwLK3Sd+8TN6QClhTR//ozH/EvQcGWEg+uQgS8aa5+0w8qIqnny3oRryUeH5wOrRqT 3hrCZP3dzgMQrIlMUkJUO1lpNHTE1xDHIbpm7b4nYv7QuyU+VmmwF1Kmrf6ojkHsIbFS9mKgaUTXY HZefvBp5jDUvAfx5ZWUpJ+6hstuD5misJHgo/CIrgzIJQ//yRel9DgfYUkM9QtgxDqR5gLH2L2sK7 izJaWuROuC5t4w==; In-Reply-To: <86bk0w3tf5.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 10 Sep 2024 09:38:06 +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:292160 Archived-At: > Cc: 73027@debbugs.gnu.org > From: Juri Linkov > Date: Tue, 10 Sep 2024 09:38:06 +0300 > > >> 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))))))) > ``` Should we close this bug with the above workaround? Or would we like to solve it in some other way?