Changeset 4131 for trunk/lispref/commands.texi
- Timestamp:
- 07/29/06 07:48:34 (2 years ago)
- Files:
-
- trunk/lispref/commands.texi (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lispref/commands.texi
r4111 r4131 2166 2166 elsewhere in the event---in the coordinates. But 2167 2167 @code{read-key-sequence} translates this information into imaginary 2168 ``prefix keys '',all of which are symbols: @code{header-line},2168 ``prefix keys,'' all of which are symbols: @code{header-line}, 2169 2169 @code{horizontal-scroll-bar}, @code{menu-bar}, @code{mode-line}, 2170 2170 @code{vertical-line}, and @code{vertical-scroll-bar}. You can define … … 2200 2200 None of the three functions below suppresses quitting. 2201 2201 2202 @defun read-event &optional prompt inherit-input-method 2202 @defun read-event &optional prompt inherit-input-method seconds 2203 2203 This function reads and returns the next event of command input, waiting 2204 2204 if necessary until an event is available. Events can come directly from … … 2221 2221 displayed there. Otherwise @code{read-event} does not move the cursor. 2222 2222 2223 If @var{seconds} is non-@code{nil}, it should be a number specifying 2224 the maximum time to wait for input, in seconds. If no input arrives 2225 within that time, @code{read-event} stops waiting and returns 2226 @code{nil}. A floating-point value for @var{seconds} means to wait 2227 for a fractional number of seconds. Some systems support only a whole 2228 number of seconds; on these systems, @var{seconds} is rounded down. 2229 If @var{seconds} is @code{nil}, @code{read-event} waits as long as 2230 necessary for input to arrive. 2231 2223 2232 If @code{read-event} gets an event that is defined as a help character, 2224 2233 then in some cases @code{read-event} processes the event directly without … … 2238 2247 @end defun 2239 2248 2240 @defun read-char &optional prompt inherit-input-method 2249 @defun read-char &optional prompt inherit-input-method seconds 2241 2250 This function reads and returns a character of command input. If the 2242 2251 user generates an event which is not a character (i.e. a mouse click or … … 2270 2279 @end defun 2271 2280 2272 @defun read-char-exclusive &optional prompt inherit-input-method 2281 @defun read-char-exclusive &optional prompt inherit-input-method seconds 2273 2282 This function reads and returns a character of command input. If the 2274 2283 user generates an event which is not a character, … … 2411 2420 @defvar unread-command-char 2412 2421 This variable holds a character to be read as command input. 2413 A value of -1 means ``empty ''.2422 A value of -1 means ``empty.'' 2414 2423 2415 2424 This variable is mostly obsolete now that you can use … … 2535 2544 This function performs redisplay (provided there is no pending input 2536 2545 from the user), then waits @var{seconds} seconds, or until input is 2537 available. The value is @code{t} if @code{sit-for} waited the full 2538 time with no input arriving (see @code{input-pending-p} in @ref{Event 2539 Input Misc}). Otherwise, the value is @code{nil}. 2546 available. The usual purpose of @code{sit-for} is to give the user 2547 time to read text that you display. The value is @code{t} if 2548 @code{sit-for} waited the full time with no input arriving 2549 (@pxref{Event Input Misc}). Otherwise, the value is @code{nil}. 2540 2550 2541 2551 The argument @var{seconds} need not be an integer. If it is a floating … … 2552 2562 the timeout elapses). 2553 2563 2554 The usual purpose of @code{sit-for} is to give the user time to read 2555 text that you display. 2564 In batch mode (@pxref{Batch Mode}), @code{sit-for} cannot be 2565 interrupted, even by input from the standard input descriptor. It is 2566 thus equivalent to @code{sleep-for}, which is described below. 2556 2567 2557 2568 It is also possible to call @code{sit-for} with three arguments, … … 2899 2910 major mode, which should have a command to go back to the previous mode. 2900 2911 (The @kbd{e} command in Rmail uses this technique.) Or, if you wish to 2901 give the user different text to edit ``recursively '',create and select2912 give the user different text to edit ``recursively,'' create and select 2902 2913 a new buffer in a special mode. In this mode, define a command to 2903 2914 complete the processing and go back to the previous buffer. (The
