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


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)]

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.