bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#16874: 24.3.50; Regression in active window detection


From: Stefan Monnier
Subject: bug#16874: 24.3.50; Regression in active window detection
Date: Fri, 07 Mar 2014 19:25:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> so the code I had written was able to detect whether the mode-line was
> being displayed in the active window or not.

IIUC your old code was not correct in some circumstance (maybe in the
presence of multiple frames, can't remember), but indeed the change in
Emacs-24.4 (which was made to fix another problem) breaks such hacks.

The best I can offer so far goes along the following lines:

1- use post-command-hook (or better yet pre-redisplay-function) to set
   a global variable `my-selected-window'.
2- use that variable instead of (selected-window) in your modeline :eval code.


        Stefan





reply via email to

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