aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-07-14 15:53:03 +0000
committerRichard M. Stallman2003-07-14 15:53:03 +0000
commit14bd0b09da49c02ff59971d99b355c18efc2224c (patch)
treeab4efe5a0bec5eee50a9e0c7047683a5568c4821
parent413329830adde2e8221233bad748f4dce6bca322 (diff)
downloademacs-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.texi15
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,
90these hooks, it terminates execution of the hook, and clears the hook 90these hooks, it terminates execution of the hook, and clears the hook
91variable to @code{nil} so as to prevent an infinite loop of errors. 91variable 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,,,
94emacs, The GNU Emacs Manual}) runs these two hooks just as a keyboard
95command 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.
2247input comes in, while @code{sleep-for} pauses without updating the 2251input comes in, while @code{sleep-for} pauses without updating the
2248screen. 2252screen.
2249 2253
2250@defun sit-for seconds &optional millisec nodisp 2254@defun sit-for seconds &optional nodisp
2251This function performs redisplay (provided there is no pending input 2255This function performs redisplay (provided there is no pending input
2252from the user), then waits @var{seconds} seconds, or until input is 2256from the user), then waits @var{seconds} seconds, or until input is
2253available. The value is @code{t} if @code{sit-for} waited the full 2257available. 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.
2259Some systems support only a whole number of seconds; on these systems, 2263Some 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
2262The optional argument @var{millisec} specifies an additional waiting
2263period measured in milliseconds. This adds to the period specified by
2264@var{seconds}. If the system doesn't support waiting fractions of a
2265second, you get an error if you specify nonzero @var{millisec}.
2266
2267The expression @code{(sit-for 0)} is a convenient way to request a 2266The expression @code{(sit-for 0)} is a convenient way to request a
2268redisplay, without any delay. @xref{Forcing Redisplay}. 2267redisplay, without any delay. @xref{Forcing Redisplay}.
2269 2268
@@ -2276,6 +2275,10 @@ that generates an event. @xref{Misc Events}.
2276 2275
2277The usual purpose of @code{sit-for} is to give the user time to read 2276The usual purpose of @code{sit-for} is to give the user time to read
2278text that you display. 2277text that you display.
2278
2279It is also possible to call @code{sit-for} with three arguments,
2280as @code{(sit-for @var{seconds} @var{millisec} @var{nodisp})},
2281but 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