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: Juri Linkov <juri <at> linkov.net>
To: Ship Mints <shipmints <at> gmail.com>
Cc: 76394 <at> debbugs.gnu.org
Subject: bug#76394: mouse-face property not working in tab-bar
Date: Thu, 27 Feb 2025 20:41:54 +0200
> (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.

Thanks, now it works.  The requirement is that the tab-bar-mode
should be disabled before evaluating the above code.  Otherwise,
with already enabled tab-bar-mode it has no effect.




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.