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

To reply to this bug, email your comments to 76394 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#76394; Package emacs. (Tue, 18 Feb 2025 15:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ship Mints <shipmints <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 18 Feb 2025 15:05:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ship Mints <shipmints <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: mouse-face property not working in tab-bar
Date: Tue, 18 Feb 2025 10:04:10 -0500
[Message part 1 (text/plain, inline)]
I was trying to make a simple aesthetic change to tab-bar to highlight a
tab when it is moused over.  mouse-face seems to work in tab-line,
header-line, and obviously in mode-line.  Mouse events are processed in the
tab-bar window.  Am I missing something obvious?  I tested in 29.4 and in
master.

emacs -Q -l tab-bar-mouse-face.el

tab-bar-mouse-face.el:

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

-Stephane

P.S. I searched for a related bug but did not find one so this could be a
duplicate bug report.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76394; Package emacs. (Tue, 18 Feb 2025 17:16:02 GMT) Full text and rfc822 format available.

Message #8 received at 76394 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Ship Mints <shipmints <at> gmail.com>
Cc: 76394 <at> debbugs.gnu.org
Subject: Re: bug#76394: mouse-face property not working in tab-bar
Date: Tue, 18 Feb 2025 19:14:20 +0200
> I was trying to make a simple aesthetic change to tab-bar to highlight a
> tab when it is moused over.  mouse-face seems to work in tab-line,
> header-line, and obviously in mode-line.  Mouse events are processed in the
> tab-bar window.  Am I missing something obvious?  I tested in 29.4 and in
> master.

Indeed, this would be a nice feature.  Patches welcome.




This bug report was last modified 2 days ago.

Previous Next


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