# HG changeset patch # User Richard M. Stallman # Date 1194054616 0 # Node ID 973c113d9bfec863134a73796d775290f5f8f807 # Parent bef6cef0e8f4621a14442b7f8e5ee5e76845b973 (handle_stop): Move some code out of loop. diff -r bef6cef0e8f4 -r 973c113d9bfe src/xdisp.c --- a/src/xdisp.c Fri Nov 02 11:02:13 2007 +0000 +++ b/src/xdisp.c Sat Nov 03 01:50:16 2007 +0000 @@ -3073,16 +3073,18 @@ if (it->method == GET_FROM_DISPLAY_VECTOR) handle_overlay_change_p = 0; - /* Handle overlay changes. */ + /* Handle overlay changes. + This sets HANDLED to HANDLED_RECOMPUTE_PROPS + if it finds overlays. */ if (handle_overlay_change_p) handled = handle_overlay_change (it); - - /* Determine where to stop next. */ - if (handled == HANDLED_NORMALLY) - compute_stop_pos (it); } } while (handled == HANDLED_RECOMPUTE_PROPS); + + /* Determine where to stop next. */ + if (handled == HANDLED_NORMALLY) + compute_stop_pos (it); }