Subject: Re: bug#76394: mouse-face property not working in tab-bar

From: Juri Linkov <[email-masked]>
Date: Sun, 02 Mar 2025 19:15:08 +0200

> It seemed natural to add tab-bar-tab-name-format-mouse-face function to the
> tab-bar-tab-name-format-functions list.  See attached.

Thanks, I've tested your patch, and it works great!

> +(defface tab-bar-tab-highlight
> +  '((t :inherit highlight))
> +  "Tab bar face for highlighting."
> +  :version "31.1"
> +  :group 'tab-bar-faces)

Please use exactly the same style as in 'tab-line-highlight'.

> +(defun tab-bar-tab-name-format-mouse-face (name tab _i)

The arg 'tab' needs an underscore since compilation gives the
warning: Unused lexical argument `tab'.

> +      /* display_tab_bar does not yet support R2L.  */
> +      eassert (row->reversed_p);

Is this still needed?