[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

38.2 Forcing Redisplay

Emacs redisplay normally stops if input arrives, and does not happen at all if input is available before it starts. Most of the time, this is exactly what you want. However, you can prevent preemption by binding redisplay-dont-pause to a non-nil value.

Variable: redisplay-preemption-period

This variable specifies how many seconds Emacs waits between checks for new input during redisplay. (The default is 0.1 seconds.) If input has arrived when Emacs checks, it pre-empts redisplay and processes the available input before trying again to redisplay.

If this variable is nil, Emacs does not check for input during redisplay, and redisplay cannot be preempted by input.

This variable is only obeyed on graphical terminals. For text terminals, see Terminal Output.

Variable: redisplay-dont-pause

If this variable is non-nil, pending input does not prevent or halt redisplay; redisplay occurs, and finishes, regardless of whether input is available.

Function: redisplay &optional force

This function performs an immediate redisplay provided there are no pending input events. This is equivalent to (sit-for 0).

If the optional argument force is non-nil, it forces an immediate and complete redisplay even if input is available.

Returns t if redisplay was performed, or nil otherwise.


Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.