# HG changeset patch # User Luc Teirlinck # Date 1089240113 0 # Node ID 48a83b7f435a2a2eb17f8f1cfa7117ceff64eb83 # Parent dce4aada3bd3692cb0bc3ea424970dac9ebb9761 (Input Focus): Clarify descriptions of `select-frame-set-input-focus' and `select-frame'. diff -r dce4aada3bd3 -r 48a83b7f435a lispref/frames.texi --- a/lispref/frames.texi Wed Jul 07 01:13:55 2004 +0000 +++ b/lispref/frames.texi Wed Jul 07 22:41:53 2004 +0000 @@ -1006,17 +1006,19 @@ until that control is somehow reasserted. When using a text-only terminal, only one frame can be displayed at a -time on the terminal, so @code{select-frame} actually displays the -newly selected frame. This frame remains displayed until a subsequent -call to @code{select-frame} or @code{select-frame-set-input-focus}. -Each terminal frame has a number which appears in the mode line before -the buffer name (@pxref{Mode Line Variables}). +time on the terminal, so after a call to @code{select-frame}, the next +redisplay actually displays the newly selected frame. This frame +remains displayed until a subsequent call to @code{select-frame} or +@code{select-frame-set-input-focus}. Each terminal frame has a number +which appears in the mode line before the buffer name (@pxref{Mode +Line Variables}). @defun select-frame-set-input-focus frame This function makes @var{frame} the selected frame, raises it (should it happen to be obscured by other frames) and tries to give it the X -server's focus. On a text-only terminal, the new frame gets displayed -on the entire terminal screen. +server's focus. On a text-only terminal, the next redisplay displays +the new frame on the entire terminal screen. The return value of this +function is not significant. @end defun @c ??? This is not yet implemented properly. @@ -1026,7 +1028,8 @@ the next time the user does something to select a different frame, or until the next time this function is called. The specified @var{frame} becomes the selected frame, as explained above, and the terminal that -@var{frame} is on becomes the selected terminal. +@var{frame} is on becomes the selected terminal. This function +returns @var{frame}, or @code{nil} if @var{frame} has been deleted. In general, you should never use @code{select-frame} in a way that could switch to a different terminal without switching back when you're done.