From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: mail@daniel-mendler.de, 73050@debbugs.gnu.org
Subject: bug#73050: 30.0.90; Empty tool tip when hovering over tab-bar separator
Date: Sun, 08 Sep 2024 10:06:30 +0300 [thread overview]
Message-ID: <86jzfmwrnt.fsf@gnu.org> (raw)
In-Reply-To: <86jzfmu0lm.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 08 Sep 2024 09:51:41 +0300)
> From: Juri Linkov <juri@linkov.net>
> Cc: Daniel Mendler <mail@daniel-mendler.de>, 73050@debbugs.gnu.org
> Date: Sun, 08 Sep 2024 09:51:41 +0300
>
> >> This is only a minor issue. After enabling `tab-bar-mode' when hovering
> >> with the mouse over the `tab-bar-separator' space, an empty tool tip
> >> will be shown after a short delay.
> >>
> >> To reproduce:
> >>
> >> 1. Start emacs -Q
> >> 2. M-x tab-bar-mode
> >> 3. Move the mouse pointer over the space right after the "*scratch*" tab
> >>
> >> Would it make sense to somehow prevent displaying blank tool tips, e.g.,
> >> via the following advice? Or maybe blank tool tips could be prevented on
> >> the tab-bar level?
> >>
> >> (defun x-show-tip-adv (str &rest _) (string-blank-p str))
> >> (advice-add #'x-show-tip :before-until #'x-show-tip-adv)
> >
> > Juri, can we prevent such empty tooltips from being shown by tab bar?
>
> Maybe this unasked-for default fallback is not needed after all:
>
> diff --git a/src/xdisp.c b/src/xdisp.c
> index f9a10267bad..18834c6b781 100644
> --- a/src/xdisp.c
> +++ b/src/xdisp.c
> @@ -15155,8 +15155,6 @@ note_tab_bar_highlight (struct frame *f, int x, int y)
> help_echo_object = help_echo_window = Qnil;
> help_echo_pos = -1;
> help_echo_string = AREF (f->tab_bar_items, prop_idx + TAB_BAR_ITEM_HELP);
> - if (NILP (help_echo_string))
> - help_echo_string = AREF (f->tab_bar_items, prop_idx + TAB_BAR_ITEM_CAPTION);
> }
>
> #endif /* HAVE_WINDOW_SYSTEM */
Do you remember why was this introduced?
next prev parent reply other threads:[~2024-09-08 7:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-05 16:35 bug#73050: 30.0.90; Empty tool tip when hovering over tab-bar separator Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-07 9:45 ` Eli Zaretskii
2024-09-08 6:51 ` Juri Linkov
2024-09-08 7:06 ` Eli Zaretskii [this message]
2024-09-08 16:40 ` Juri Linkov
2024-09-08 17:49 ` Eli Zaretskii
2024-09-09 17:17 ` Juri Linkov
2024-09-09 17:44 ` Eli Zaretskii
2024-09-09 18:33 ` Juri Linkov
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=86jzfmwrnt.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=73050@debbugs.gnu.org \
--cc=juri@linkov.net \
--cc=mail@daniel-mendler.de \
/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.