diff options
| author | Richard M. Stallman | 2003-07-14 15:53:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-07-14 15:53:03 +0000 |
| commit | 14bd0b09da49c02ff59971d99b355c18efc2224c (patch) | |
| tree | ab4efe5a0bec5eee50a9e0c7047683a5568c4821 | |
| parent | 413329830adde2e8221233bad748f4dce6bca322 (diff) | |
| download | emacs-14bd0b09da49c02ff59971d99b355c18efc2224c.tar.gz emacs-14bd0b09da49c02ff59971d99b355c18efc2224c.zip | |
(Command Overview): Emacs server runs pre-command-hook and post-command-hook.
(Waiting): New calling convention for sit-for.
| -rw-r--r-- | lispref/commands.texi | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lispref/commands.texi b/lispref/commands.texi index 340ff01857b..56e5c811d9c 100644 --- a/lispref/commands.texi +++ b/lispref/commands.texi | |||
| @@ -90,6 +90,10 @@ and also when the command loop is first entered. At that time, | |||
| 90 | these hooks, it terminates execution of the hook, and clears the hook | 90 | these hooks, it terminates execution of the hook, and clears the hook |
| 91 | variable to @code{nil} so as to prevent an infinite loop of errors. | 91 | variable to @code{nil} so as to prevent an infinite loop of errors. |
| 92 | 92 | ||
| 93 | A request coming into the Emacs server (@pxref{Emacs Server,,, | ||
| 94 | emacs, The GNU Emacs Manual}) runs these two hooks just as a keyboard | ||
| 95 | command does. | ||
| 96 | |||
| 93 | @node Defining Commands | 97 | @node Defining Commands |
| 94 | @section Defining Commands | 98 | @section Defining Commands |
| 95 | @cindex defining commands | 99 | @cindex defining commands |
| @@ -2247,7 +2251,7 @@ the middle of a computation to allow the user time to view the display. | |||
| 2247 | input comes in, while @code{sleep-for} pauses without updating the | 2251 | input comes in, while @code{sleep-for} pauses without updating the |
| 2248 | screen. | 2252 | screen. |
| 2249 | 2253 | ||
| 2250 | @defun sit-for seconds &optional millisec nodisp | 2254 | @defun sit-for seconds &optional nodisp |
| 2251 | This function performs redisplay (provided there is no pending input | 2255 | This function performs redisplay (provided there is no pending input |
| 2252 | from the user), then waits @var{seconds} seconds, or until input is | 2256 | from the user), then waits @var{seconds} seconds, or until input is |
| 2253 | available. The value is @code{t} if @code{sit-for} waited the full | 2257 | available. The value is @code{t} if @code{sit-for} waited the full |
| @@ -2259,11 +2263,6 @@ point number, @code{sit-for} waits for a fractional number of seconds. | |||
| 2259 | Some systems support only a whole number of seconds; on these systems, | 2263 | Some systems support only a whole number of seconds; on these systems, |
| 2260 | @var{seconds} is rounded down. | 2264 | @var{seconds} is rounded down. |
| 2261 | 2265 | ||
| 2262 | The optional argument @var{millisec} specifies an additional waiting | ||
| 2263 | period measured in milliseconds. This adds to the period specified by | ||
| 2264 | @var{seconds}. If the system doesn't support waiting fractions of a | ||
| 2265 | second, you get an error if you specify nonzero @var{millisec}. | ||
| 2266 | |||
| 2267 | The expression @code{(sit-for 0)} is a convenient way to request a | 2266 | The expression @code{(sit-for 0)} is a convenient way to request a |
| 2268 | redisplay, without any delay. @xref{Forcing Redisplay}. | 2267 | redisplay, without any delay. @xref{Forcing Redisplay}. |
| 2269 | 2268 | ||
| @@ -2276,6 +2275,10 @@ that generates an event. @xref{Misc Events}. | |||
| 2276 | 2275 | ||
| 2277 | The usual purpose of @code{sit-for} is to give the user time to read | 2276 | The usual purpose of @code{sit-for} is to give the user time to read |
| 2278 | text that you display. | 2277 | text that you display. |
| 2278 | |||
| 2279 | It is also possible to call @code{sit-for} with three arguments, | ||
| 2280 | as @code{(sit-for @var{seconds} @var{millisec} @var{nodisp})}, | ||
| 2281 | but that is considered obsolete. | ||
| 2279 | @end defun | 2282 | @end defun |
| 2280 | 2283 | ||
| 2281 | @defun sleep-for seconds &optional millisec | 2284 | @defun sleep-for seconds &optional millisec |