GNU bug report logs - #76394
mouse-face property not working in tab-bar

Previous Next

Package: emacs;

Reported by: Ship Mints <shipmints <at> gmail.com>

Date: Tue, 18 Feb 2025 15:05:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Ship Mints <shipmints <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 76394 <at> debbugs.gnu.org
Subject: bug#76394: mouse-face property not working in tab-bar
Date: Thu, 27 Feb 2025 13:30:59 -0500
[Message part 1 (text/plain, inline)]
Thanks for checking out the patch.  Try this:

(defun my/tab-bar-tab-name-format-function (tab i)
  (propertize
   (tab-bar-tab-name-format-default tab i)
   'mouse-face '(:inverse-video t))) ; or a named face
(setopt tab-bar-tab-name-format-function
#'my/tab-bar-tab-name-format-function)

And move the mouse over the tab. It should invert. It does for me.

On Thu, Feb 27, 2025 at 1:23 PM Juri Linkov <juri <at> linkov.net> wrote:

> > First-cut patch for mouse-face handling on tab-bar items.  I left the
> > default handling code in place not being sure what it really is intended
> to
> > do (which appears to be nothing?).  It looks copied from
> > note_tool_bar_highlight but I wasn't sure.  (xdisp internals are fun.
> It's
> > a work of art.)
>
> Thanks.  What is the status of this patch?  I tried it out,
> but can't see where is handles mouse-face.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 101 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.