emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Let mode-line packages distinguish the selected-window


From: Jonas Bernoulli
Subject: Re: Let mode-line packages distinguish the selected-window
Date: Tue, 29 Oct 2019 12:50:20 +0100
User-agent: mu4e 1.1.0; emacs 27.0.50

Eli Zaretskii <address@hidden> writes:

>> From: Jonas Bernoulli <address@hidden>
>> Cc: Eli Zaretskii <address@hidden>, address@hidden
>> Date: Sun, 27 Oct 2019 22:13:50 +0100
>>
>>   Which face (mode-line or mode-line-inactive) is the mode-line of this
>>   window using?
>>
>> That is of course closely related to the question:
>>
>>   Is the is the "selected" window?
>>
>> But the answer to the first question can not always be derived from the
>> answer to the second.
>
> Are you saying that you want the actual mode-line face to be exposed
> to Lisp, not the selected window of the selected frame?

Checking whether Emacs was already doing that after all was the
last thing that I checked before I started this thread, so yes.

Doing that the way Martin suggested sounds like a good idea to me:

>>> So maybe we should just provide a function called 'mode-line-active-p'
>>> that returns non-nil when the window whose mode-line is just processed
>>> is considered active (whether that decision is right or wrong) and not
>>> talk about the selected window in the first place.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]