[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detect window switches?
From: |
Dan Espen |
Subject: |
Re: Detect window switches? |
Date: |
Thu, 26 Sep 2013 16:15:52 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Dan Espen <despen@verizon.net>
>> Date: Thu, 26 Sep 2013 15:22:58 -0400
>>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>> >> From: Dan Espen <despen@verizon.net>
>> >> Date: Thu, 26 Sep 2013 14:22:15 -0400
>> >>
>> >> My mode line changes color when a buffer changes from active/inactive.
>> >> Isn't that what the OP is looking for?
>> >
>> > That's done on the C level, and Lisp programs cannot hook into this.
>>
>> Hmm, starting to sound like a bug.
>> Here's an event that Emacs acts on but doesn't make the
>> event visible to ELisp.
>
> No, Emacs doesn't act on this as an event. What happens is that the
> next redisplay after a window switch redraws the mode line in a
> different face. The redisplay isn't triggered by an event (because
> there is no such event), it is triggered by other means, mostly
> because Emacs becomes idle. That could happen many seconds after the
> switch, if Emacs becomes busy calculating something, for example.
I only meant event with the meaning that something happens.
Here Emacs sees a buffer become active or inactive and thinks it's
an important enough event that it provides a visual mode line change.
Well, it also changes the physical appearance of the keyboard cursor.
Mine goes from 3 pixels wide to 1.
--
Dan Espen
- Re: Detect window switches?, (continued)
- Re: Detect window switches?, martin rudalics, 2013/09/26
- Re: Detect window switches?, Joost Kremers, 2013/09/26
- Re: Detect window switches?, Eli Zaretskii, 2013/09/26
- Message not available
- Re: Detect window switches?, Dan Espen, 2013/09/26
- Re: Detect window switches?, Eli Zaretskii, 2013/09/26
- Message not available
- Re: Detect window switches?, Dan Espen, 2013/09/26
- Re: Detect window switches?, Eli Zaretskii, 2013/09/26
- Re: Detect window switches?, Stefan Monnier, 2013/09/26
- Re: Detect window switches?, Eli Zaretskii, 2013/09/27
- Re: Detect window switches?, Stefan Monnier, 2013/09/27
- Message not available
- Re: Detect window switches?,
Dan Espen <=
- Re: Detect window switches?, Eli Zaretskii, 2013/09/27
- Message not available
- Re: Detect window switches?, Dan Espen, 2013/09/27
- Re: Detect window switches?, Joost Kremers, 2013/09/26
Message not available
Re: Detect window switches?, martin rudalics, 2013/09/27