GNU bug report logs -
#14604
24.3.50.1; Possibly incorrect behaviour of frame-selected-window
Previous Next
Reported by: E Sabof <esabof <at> gmail.com>
Date: Thu, 13 Jun 2013 11:47:02 UTC
Severity: normal
Found in version 24.3.50.1
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
E Sabof <esabof <at> gmail.com> writes:
> This works on 24.3, but on trunk all windows will be shown as "selected".
>
> (setq-default
> mode-line-format
> '(:eval (if (eq (frame-selected-window)
> (selected-window))
> "selected"
> "not-selected")))
>
> I don't know which behavior is correct, but being able to find which is the "really"
> selected window would be nice.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
In Emacs 29, we've introduced a new function
`mode-line-window-selected-p' for this use case (i.e., determining if
we're rendering the mode line for the currently selected window). So
I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 100 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.