[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 31.0.50; tab-bar-formal-global erased global-modeline-string's mouse
From: |
Eli Zaretskii |
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 |
> From: Eval EXEC <execvy@gmail.com>
> 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.