all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: execvy@gmail.com
To: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: 31.0.50; tab-bar-formal-global erased global-modeline-string's mouse hover/click action menu
Date: Wed, 4 Sep 2024 22:36:54 +0800	[thread overview]
Message-ID: <30788fc9-6841-45ea-802f-d075eec37640@gmail.com> (raw)
In-Reply-To: <868qw75w3l.fsf@gnu.org>

Thank you, I’ve forwarded the email to bug-gnu-emacs@gnu.org.

Another question: how do you add rich text to emails? 

I'm reading the Emacs-devel email archives, and the code in the email body is plain text with a white background and black foreground. If we could display code with syntax highlighting in emails, that would be great.



On 9/4/24 10:31 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > 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.
> 



  reply	other threads:[~2024-09-04 14:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-04 14:12 31.0.50; tab-bar-formal-global erased global-modeline-string's mouse hover/click action menu Eval EXEC
2024-09-04 14:31 ` Eli Zaretskii
2024-09-04 14:36   ` execvy [this message]
2024-09-04 14:40     ` Rich text in email Eli Zaretskii
2024-09-04 14:57       ` Eval EXEC
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
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
2024-09-04 14:36 ` Po Lu
2024-09-05  5:11 ` Tassilo Horn
2024-09-05  6:26   ` Eval EXEC
2024-09-05  8:09     ` Eli Zaretskii
2024-09-05  8:11       ` Eval EXEC
2024-09-05  9:12         ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30788fc9-6841-45ea-802f-d075eec37640@gmail.com \
    --to=execvy@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.