*** window.c.~1.639.~ 2009-07-04 17:09:38.265625000 +0200 --- window.c 2009-08-01 15:06:48.906250000 +0200 *************** *** 1596,1602 **** if (!EQ (window, pwindow)) break; /* Otherwise, try another window for SWINDOW. */ ! swindow = Fnext_window (swindow, Qlambda, Qnil); /* If we get back to the frame's selected window, it means there was no acceptable alternative, --- 1596,1605 ---- if (!EQ (window, pwindow)) break; /* Otherwise, try another window for SWINDOW. */ ! if (NILP (XWINDOW (swindow)->prev)) ! swindow = Fnext_window (swindow, Qlambda, Qnil); ! else ! swindow = Fprevious_window (swindow, Qlambda, Qnil); /* If we get back to the frame's selected window, it means there was no acceptable alternative,