# HG changeset patch # User Kim F. Storm # Date 1150238684 0 # Node ID 6844a4a9691cf48f76579502cf819901bdaf08e4 # Parent 150d9406afb35611f6491c2d776f5cd1c143c792 *** empty log message *** diff -r 150d9406afb3 -r 6844a4a9691c etc/NEWS --- a/etc/NEWS Tue Jun 13 22:18:38 2006 +0000 +++ b/etc/NEWS Tue Jun 13 22:44:44 2006 +0000 @@ -4883,6 +4883,10 @@ *** `sit-for' can now be called with args (SECONDS &optional NODISP). +++ +*** `sit-for' called with a negative SECONDS value now forces an +immediate redisplay even if input is pending. + ++++ *** New function `force-window-update' can initiate a full redisplay of one or all windows. Normally, this is not needed as changes in window contents are detected automatically. However, certain implicit diff -r 150d9406afb3 -r 6844a4a9691c lispref/ChangeLog --- a/lispref/ChangeLog Tue Jun 13 22:18:38 2006 +0000 +++ b/lispref/ChangeLog Tue Jun 13 22:44:44 2006 +0000 @@ -1,3 +1,12 @@ +2006-06-14 Kim F. Storm + + * commands.texi (Waiting): Negative arg to sit-for forces + redisplay even if input is pending. + + * display.texi (Forcing Redisplay): Use (sit-for -1) to force a + redisplay. Remove incorrect example of binding redisplay-dont-pause + around (sit-for 0). + 2006-06-13 Richard Stallman * display.texi (Forcing Redisplay): Clarify previous change. diff -r 150d9406afb3 -r 6844a4a9691c src/ChangeLog --- a/src/ChangeLog Tue Jun 13 22:18:38 2006 +0000 +++ b/src/ChangeLog Tue Jun 13 22:44:44 2006 +0000 @@ -1,5 +1,31 @@ 2006-06-14 Kim F. Storm + * dispextern.h (IT_STACK_SIZE): New macro specifying size of + iterator stack (instead of hardcoded number). Increase from 2 to + 4 to make room for propertized overlay strings before and after a + display string, image or composition. + (struct it): Add image_id and method members to iterator stack. + + * xdisp.c (init_from_display_pos): Don't set it->method and + overlay_string_index after pop_it. Add asserts. + (handle_stop): Look for overlay strings around a display string, + image, or composition. Handle properties on those strings. + (next_overlay_string): Don't set string, pos or method after pop_it. + (get_overlay_strings_1): Split from get_overlay_strings; don't + modify it if no overlay strings are found. + (get_overlay_strings): Use get_overlay_strings_1. Always set + it->string and it->method. + (push_it): Push it->image_id and it->method. Push it->object + instead of it->string if method is GET_FROM_IMAGE. + (pop_it): Pop it->image_id and it->method. Ppo it->object + instead of it->string if method is GET_FROM_IMAGE. + Reset it->current.string_pos if popped it->string is nil. + (reseat_1): Remove comment dated 19 May 2003. It expressed doubt + whether a given change was correct; but the change is correct. + Clear it->string_from_display_prop_p. + (set_iterator_to_next): Rely on it->method and it->image_id from + iterator stack, instead of setting them explicitly after pop_it. + * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a negative time forces redisplay even when input is available. (Fsit_for): Doc fix.