GNU bug report logs - #18233
24.3.92; Use of (frame-selected-window) in mode-line-format

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <ch <at> ristopher.com>

Date: Sat, 9 Aug 2014 21:19:01 UTC

Severity: wishlist

Found in version 24.3.92

Done: Christopher Schmidt <ch <at> ristopher.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 18233-done <at> debbugs.gnu.org (full text, mbox):

From: Christopher Schmidt <ch <at> ristopher.com>
To: 18233-done <at> debbugs.gnu.org
Subject: Re: 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 <at> 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!




This bug report was last modified 10 years and 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.