GNU bug report logs - #16874
24.3.50; Regression in active window detection

Previous Next

Package: emacs;

Reported by: Damien Cassou <damien.cassou <at> gmail.com>

Date: Tue, 25 Feb 2014 09:08:02 UTC

Severity: normal

Tags: notabug

Found in version 24.3.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Donald Curtis <d <at> milkbox.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: rudalics <at> gmx.at, 16874 <at> debbugs.gnu.org, damien.cassou <at> gmail.com
Subject: bug#16874: 24.3.50; Regression in active window detection
Date: Fri, 7 Mar 2014 17:53:39 -0800
[Message part 1 (text/plain, inline)]
Cool thanks for the pre redisplay suggestion.
On Mar 7, 2014 4:26 PM, "Stefan Monnier" <monnier <at> iro.umontreal.ca> wrote:

> > 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
>
[Message part 2 (text/html, inline)]

This bug report was last modified 11 years and 72 days ago.

Previous Next


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