[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18233: 24.3.92; Use of (frame-selected-window) in mode-line-format
From: |
Christopher Schmidt |
Subject: |
bug#18233: 24.3.92; Use of (frame-selected-window) in mode-line-format |
Date: |
Sat, 9 Aug 2014 18:22:06 -0400 (EDT) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> So we won't go back to the old behavior. Instead we should provide
> a new feature for that. IIRC you can currently do it by hand with
> something like:
>
> (add-function :before pre-redisplay-function
> (lambda (_) (setq my-selected-window (selected-window))))
>
> and then compare (deleted-window) to my-selected-window in your
> mode-line-format.
Works great. Thanks a lot!