GNU bug report logs -
#16874
24.3.50; Regression in active window detection
Previous Next
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: Damien Cassou <damien.cassou <at> gmail.com>
> Date: Tue, 25 Feb 2014 10:06:49 +0100
>
>
> The following piece of code, from the milkypostman/powerline github
> repository, used to detect if the current window is active or not:
>
> (defun powerline-selected-window-active ()
> "Return whether the current window is active."
> (or (eq (frame-selected-window)
> (selected-window))
> (and (minibuffer-window-active-p
> (frame-selected-window))
> (eq (pl/minibuffer-selected-window)
> (selected-window)))))
>
> This works fine in released Emacs 24 but does not work anymore in
> emacs-snapshot (see below for details about the version I used to test).
> Is this an Emacs regression or a problem in the implementation of this
> function that is revealed by some recent changes in Emacs?
It's a deliberate change in Emacs that breaks functions which assume
that the window whose mode line is being redrawn is selected at that
time.
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.