# HG changeset patch # User Ben Wing # Date 1269838806 18000 # Node ID 8cd17b2131a13eeacdcf01c0ab1d0d86345e6111 # Parent 5ddbab03b0e66959468285d3db17c8f5b2211d7f fix further crash in window-mirror finding -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-03-28 Ben Wing * window.c (find_window_mirror_internal): Stop looking if no window mirror, and return 0. * window.c (window_display_lines): * window.c (window_display_buffer): * window.c (set_window_display_buffer): Don't need to update window mirror before calling find_window_mirror because does the updating automatically. diff -r 5ddbab03b0e6 -r 8cd17b2131a1 src/ChangeLog --- a/src/ChangeLog Thu Mar 25 06:07:25 2010 -0500 +++ b/src/ChangeLog Mon Mar 29 00:00:06 2010 -0500 @@ -1,3 +1,14 @@ +2010-03-28 Ben Wing + + * window.c (find_window_mirror_internal): + Stop looking if no window mirror, and return 0. + + * window.c (window_display_lines): + * window.c (window_display_buffer): + * window.c (set_window_display_buffer): + Don't need to update window mirror before calling find_window_mirror + because does the updating automatically. + 2010-03-25 Ben Wing * alloc.c: diff -r 5ddbab03b0e6 -r 8cd17b2131a1 src/window.c --- a/src/window.c Thu Mar 25 06:07:25 2010 -0500 +++ b/src/window.c Mon Mar 29 00:00:06 2010 -0500 @@ -627,7 +627,7 @@ find_window_mirror_internal (Lisp_Object win, struct window_mirror *rmir, struct window *w) { - for (; !NILP (win); win = XWINDOW (win)->next, rmir = rmir->next) + for (; !NILP (win) && rmir; win = XWINDOW (win)->next, rmir = rmir->next) { if (w == XWINDOW (win)) return rmir; @@ -764,8 +764,6 @@ { struct window_mirror *t; - if (XFRAME (w->frame)->mirror_dirty) - update_frame_window_mirror (XFRAME (w->frame)); t = find_window_mirror (w); assert (t); @@ -787,8 +785,6 @@ { struct window_mirror *t; - if (XFRAME (w->frame)->mirror_dirty) - update_frame_window_mirror (XFRAME (w->frame)); t = find_window_mirror (w); assert (t); @@ -800,8 +796,6 @@ { struct window_mirror *t; - if (XFRAME (w->frame)->mirror_dirty) - update_frame_window_mirror (XFRAME (w->frame)); t = find_window_mirror (w); assert (t);