+2012-12-14 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * xdisp.c (select_frame_for_redisplay): Keep selected_window and
+ selected_frame in sync.
+
2012-12-14 Eli Zaretskii <eliz@gnu.org>
* w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not
security APIs. This is to make most callers of 'stat' and
'lstat', which don't need that information, much faster.
- * dired.c (Ffile_attributes) [WINDOWSNT]: Set
- w32_stat_get_owner_group to a non-zero value, to request accurate
+ * dired.c (Ffile_attributes) [WINDOWSNT]:
+ Set w32_stat_get_owner_group to a non-zero value, to request accurate
owner and group information from 'lstat'.
2012-12-13 Paul Eggert <eggert@cs.ucla.edu>
* emacs.c (main): Call cache_system_info early in startup; we
previously weren't calling it in Cygwin builds.
- * Makefile.in (ntsource, WINDRES, W32_RES, W#@_RES_LINK): Teach
- the autoconf build system how to compile a Windows resource file
+ * Makefile.in (ntsource, WINDRES, W32_RES, W#@_RES_LINK):
+ Teach the autoconf build system how to compile a Windows resource file
and link it to Emacs.
2012-12-10 Dmitry Antipov <dmantipov@yandex.ru>
(set_frame_menubar): Adjust user.
* w32term.h (struct x_output): Drop outdated #if 0 code.
(struct w32_output): Use bitfields for explicit_parent,
- asked_for_visible and menubar_active members. Drop
- unused pending_menu_activation member.
+ asked_for_visible and menubar_active members.
+ Drop unused pending_menu_activation member.
* xterm.h (struct x_output): Drop outdated #if 0 code.
Use bitfields for explicit_parent, asked_for_visible,
has_been_visible and net_wm_state_hidden_seen members.
* fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
(Fexpand_file_name) [DOS_NT]: Pass encoded file name to
dostounix_filename. Prevents crashes down the road, because
- dostounix_filename assumes it gets a unibyte string. Reported by
- Michel de Ruiter <michel@sentient.nl>, see
+ dostounix_filename assumes it gets a unibyte string.
+ Reported by Michel de Ruiter <michel@sentient.nl>, see
http://lists.gnu.org/archive/html/help-emacs-windows/2012-11/msg00017.html
2012-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
eassert (FRAMEP (frame) && FRAME_LIVE_P (XFRAME (frame)));
selected_frame = frame;
+ selected_window = XFRAME (frame)->selected_window;
do {
for (tail = XFRAME (frame)->param_alist;
deleted (by an X connection failure during redisplay, for example). */
static void
-ensure_selected_frame (Lisp_Object old_frame)
+ensure_selected_frame (Lisp_Object frame)
{
- if (!EQ (old_frame, selected_frame) && FRAME_LIVE_P (XFRAME (old_frame)))
- select_frame_for_redisplay (old_frame);
+ if (!EQ (frame, selected_frame) && FRAME_LIVE_P (XFRAME (frame)))
+ select_frame_for_redisplay (frame);
}
#define STOP_POLLING \