Mercurial > emacs
comparison lispref/display.texi @ 71334:acf37b9ebce7
(Forcing Redisplay): Use (sit-for -1) to force a redisplay.
Remove incorrect example of binding redisplay-dont-pause
around (sit-for 0).
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 13 Jun 2006 22:18:06 +0000 |
parents | 3e4b5e8df594 |
children | 3184a667d8db 138027c8c982 |
comparison
equal
deleted
inserted
replaced
71333:a8cbcce39bd0 | 71334:acf37b9ebce7 |
---|---|
113 If this variable is non-@code{nil}, pending input does not | 113 If this variable is non-@code{nil}, pending input does not |
114 prevent or halt redisplay; redisplay occurs, and finishes, | 114 prevent or halt redisplay; redisplay occurs, and finishes, |
115 regardless of whether input is available. | 115 regardless of whether input is available. |
116 @end defvar | 116 @end defvar |
117 | 117 |
118 @tindex sit-for | |
118 You can request a display update, but only if no input is pending, | 119 You can request a display update, but only if no input is pending, |
119 with @code{(sit-for 0)}. To force a display update even when input is | 120 with @code{(sit-for 0)}. To force a display update even when input is |
120 pending, do this: | 121 pending, use @code{(sit-for -1)}. |
121 | |
122 @example | |
123 (let ((redisplay-dont-pause t)) | |
124 (sit-for 0)) | |
125 @end example | |
126 | 122 |
127 @node Truncation | 123 @node Truncation |
128 @section Truncation | 124 @section Truncation |
129 @cindex line wrapping | 125 @cindex line wrapping |
130 @cindex continuation lines | 126 @cindex continuation lines |