From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: execvy@gmail.com, 73027@debbugs.gnu.org
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 [thread overview]
Message-ID: <86o74h4bbn.fsf@gnu.org> (raw)
In-Reply-To: <86bk0w3tf5.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 10 Sep 2024 09:38:06 +0300)
> Cc: 73027@debbugs.gnu.org
> From: Juri Linkov <juri@linkov.net>
> 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?
next prev parent reply other threads:[~2024-09-21 9:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87y147v77e.fsf@gmail.com>
2024-09-04 14:33 ` bug#73027: Fwd: 31.0.50; tab-bar-formal-global erased global-modeline-string's mouse hover/click action menu Eval EXEC
2024-09-04 16:10 ` Juri Linkov
2024-09-04 16:27 ` Eval EXEC
2024-09-05 6:34 ` Juri Linkov
2024-09-05 8:23 ` Eval EXEC
2024-09-05 17:02 ` Juri Linkov
2024-09-10 6:38 ` Juri Linkov
2024-09-21 9:15 ` Eli Zaretskii [this message]
2024-09-21 18:03 ` Juri Linkov
2024-09-21 18:15 ` Eli Zaretskii
2024-09-24 6:43 ` Juri Linkov
2024-09-05 8:25 ` Eval EXEC
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86o74h4bbn.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=73027@debbugs.gnu.org \
--cc=execvy@gmail.com \
--cc=juri@linkov.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).