GNU bug report logs -
#76394
mouse-face property not working in tab-bar
Previous Next
Full log
Message #32 received at 76394 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I assumed that once the xdisp changes were deemed acceptable, we'd suggest
a tab bar highlight face. That would be in lisp.
On Thu, Feb 27, 2025 at 14:13 Ship Mints <shipmints <at> gmail.com> wrote:
> My patch is all in xdisp.c so I don't follow.
>
> On Thu, Feb 27, 2025 at 14:07 Juri Linkov <juri <at> linkov.net> wrote:
>
>> > I assumed you knew how to use tab-bar :) I rarely use emojis but this
>> one I
>> > couldn't help myself.
>> >
>> > It also works with mouse-face on any spans of glyphs embedded in the
>> name
>> > string.
>>
>> But this doesn't look normal, don't you think so?
>> tab-bar-mode enabled, then later disabled,
>> code evaluated, enabled again, and no effect.
>> Something is wrong here? There are no other settings
>> that behave that way.
>>
>> > > (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.
>>
>
[Message part 2 (text/html, inline)]
This bug report was last modified 102 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.