aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-12-14 10:38:50 -0500
committerStefan Monnier2012-12-14 10:38:50 -0500
commit26ec1f49cb852c04eb6266d64f1673859307adca (patch)
tree484083a55a83383037327ebb0fd88c4a7674c7b6
parentf0bc0bf1eb9e53cca787a59b6d6e015be9872636 (diff)
downloademacs-26ec1f49cb852c04eb6266d64f1673859307adca.tar.gz
emacs-26ec1f49cb852c04eb6266d64f1673859307adca.zip
* src/xdisp.c (select_frame_for_redisplay): Keep selected_window and
selected_frame in sync.
-rw-r--r--src/ChangeLog21
-rw-r--r--src/xdisp.c7
2 files changed, 17 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a1dc1c2adab..2e7c05e3d36 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-12-14 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * xdisp.c (select_frame_for_redisplay): Keep selected_window and
4 selected_frame in sync.
5
12012-12-14 Eli Zaretskii <eliz@gnu.org> 62012-12-14 Eli Zaretskii <eliz@gnu.org>
2 7
3 * w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not 8 * w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not
@@ -5,8 +10,8 @@
5 security APIs. This is to make most callers of 'stat' and 10 security APIs. This is to make most callers of 'stat' and
6 'lstat', which don't need that information, much faster. 11 'lstat', which don't need that information, much faster.
7 12
8 * dired.c (Ffile_attributes) [WINDOWSNT]: Set 13 * dired.c (Ffile_attributes) [WINDOWSNT]:
9 w32_stat_get_owner_group to a non-zero value, to request accurate 14 Set w32_stat_get_owner_group to a non-zero value, to request accurate
10 owner and group information from 'lstat'. 15 owner and group information from 'lstat'.
11 16
122012-12-13 Paul Eggert <eggert@cs.ucla.edu> 172012-12-13 Paul Eggert <eggert@cs.ucla.edu>
@@ -138,8 +143,8 @@
138 * emacs.c (main): Call cache_system_info early in startup; we 143 * emacs.c (main): Call cache_system_info early in startup; we
139 previously weren't calling it in Cygwin builds. 144 previously weren't calling it in Cygwin builds.
140 145
141 * Makefile.in (ntsource, WINDRES, W32_RES, W#@_RES_LINK): Teach 146 * Makefile.in (ntsource, WINDRES, W32_RES, W#@_RES_LINK):
142 the autoconf build system how to compile a Windows resource file 147 Teach the autoconf build system how to compile a Windows resource file
143 and link it to Emacs. 148 and link it to Emacs.
144 149
1452012-12-10 Dmitry Antipov <dmantipov@yandex.ru> 1502012-12-10 Dmitry Antipov <dmantipov@yandex.ru>
@@ -686,8 +691,8 @@
686 (set_frame_menubar): Adjust user. 691 (set_frame_menubar): Adjust user.
687 * w32term.h (struct x_output): Drop outdated #if 0 code. 692 * w32term.h (struct x_output): Drop outdated #if 0 code.
688 (struct w32_output): Use bitfields for explicit_parent, 693 (struct w32_output): Use bitfields for explicit_parent,
689 asked_for_visible and menubar_active members. Drop 694 asked_for_visible and menubar_active members.
690 unused pending_menu_activation member. 695 Drop unused pending_menu_activation member.
691 * xterm.h (struct x_output): Drop outdated #if 0 code. 696 * xterm.h (struct x_output): Drop outdated #if 0 code.
692 Use bitfields for explicit_parent, asked_for_visible, 697 Use bitfields for explicit_parent, asked_for_visible,
693 has_been_visible and net_wm_state_hidden_seen members. 698 has_been_visible and net_wm_state_hidden_seen members.
@@ -780,8 +785,8 @@
780 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory) 785 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
781 (Fexpand_file_name) [DOS_NT]: Pass encoded file name to 786 (Fexpand_file_name) [DOS_NT]: Pass encoded file name to
782 dostounix_filename. Prevents crashes down the road, because 787 dostounix_filename. Prevents crashes down the road, because
783 dostounix_filename assumes it gets a unibyte string. Reported by 788 dostounix_filename assumes it gets a unibyte string.
784 Michel de Ruiter <michel@sentient.nl>, see 789 Reported by Michel de Ruiter <michel@sentient.nl>, see
785 http://lists.gnu.org/archive/html/help-emacs-windows/2012-11/msg00017.html 790 http://lists.gnu.org/archive/html/help-emacs-windows/2012-11/msg00017.html
786 791
7872012-11-20 Stefan Monnier <monnier@iro.umontreal.ca> 7922012-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/src/xdisp.c b/src/xdisp.c
index 3d7eda35092..4a47892a39f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12966,6 +12966,7 @@ select_frame_for_redisplay (Lisp_Object frame)
12966 eassert (FRAMEP (frame) && FRAME_LIVE_P (XFRAME (frame))); 12966 eassert (FRAMEP (frame) && FRAME_LIVE_P (XFRAME (frame)));
12967 12967
12968 selected_frame = frame; 12968 selected_frame = frame;
12969 selected_window = XFRAME (frame)->selected_window;
12969 12970
12970 do { 12971 do {
12971 for (tail = XFRAME (frame)->param_alist; 12972 for (tail = XFRAME (frame)->param_alist;
@@ -12986,10 +12987,10 @@ select_frame_for_redisplay (Lisp_Object frame)
12986 deleted (by an X connection failure during redisplay, for example). */ 12987 deleted (by an X connection failure during redisplay, for example). */
12987 12988
12988static void 12989static void
12989ensure_selected_frame (Lisp_Object old_frame) 12990ensure_selected_frame (Lisp_Object frame)
12990{ 12991{
12991 if (!EQ (old_frame, selected_frame) && FRAME_LIVE_P (XFRAME (old_frame))) 12992 if (!EQ (frame, selected_frame) && FRAME_LIVE_P (XFRAME (frame)))
12992 select_frame_for_redisplay (old_frame); 12993 select_frame_for_redisplay (frame);
12993} 12994}
12994 12995
12995#define STOP_POLLING \ 12996#define STOP_POLLING \