[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 14:22:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Joost Kremers <joostkremers@yahoo.com>
>> Date: 26 Sep 2013 16:54:34 GMT
>>
>> What I'd like to know is if it's possible to detect when a window
>> goes from being selected to being not selected and vice versa. Or,
>> alternatively, when a buffer goes from being current to not current
>> and vice versa.
>
> There's always post-command-hook, where you can test whether the
> current-buffer is one of yours, and act accordingly.
My mode line changes color when a buffer changes from active/inactive.
Isn't that what the OP is looking for?
--
Dan Espen
- 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 <=
- 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, 2013/09/26
- 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