]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix to select_window.
authorMartin Rudalics <rudalics@gmx.at>
Wed, 9 Feb 2011 00:11:15 +0000 (19:11 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 9 Feb 2011 00:11:15 +0000 (19:11 -0500)
http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00346.html

* window.c (select_window): Check inhibit_point_swap argument when
deciding whether to return immediately.

src/ChangeLog
src/window.c

index 2df187383a4d52aa4dea9f91d93bdf93d73025eb..9fbf1841982d57e12ded7edf9336c178674d9c9f 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-09  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (select_window): Check inhibit_point_swap argument when
+       deciding whether to return immediately.
+
 2011-02-08  Jan Djärv  <jan.h.d@swipnet.se>
 
        * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
index 12775ffa7d4fe9b1a61804d316ca00412afd3cfb..3e6062a7153fc34cc7f12af43ddc7d2a268f74dc 100644 (file)
@@ -3607,7 +3607,7 @@ select_window (window, norecord, inhibit_point_swap)
       XSETFASTINT (w->use_time, window_select_count);
     }
 
-  if (EQ (window, selected_window))
+  if (EQ (window, selected_window) && !inhibit_point_swap)
     return window;
 
   sf = SELECTED_FRAME ();