Subject: frame-title-format is built with wrong selected-frame

From: Stefan Monnier <[email-masked]>
Date: Wed, 19 Mar 2008 11:04:00 -0400

I believe this is now fixed for Emacs-23, so you can use
`selected-window' and `selected-frame' in your `frame-title-format' and
get the right window/frame out of it.

2008-03-19  Stefan Monnier  <[email-masked]>

	* xdisp.c (format_mode_line_unwind_data): Add window argument.
	(unwind_format_mode_line): Restore selected window.
	(x_consider_frame_title, Fformat_mode_line): Set selected window.

-- Stefan