Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fda97484
Commit
fda97484
authored
Aug 25, 2006
by
Chong Yidong
Browse files
* os.texi (Timers): Avoid waiting inside timers.
parent
6c5d6b6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
lispref/ChangeLog
lispref/ChangeLog
+4
-0
lispref/os.texi
lispref/os.texi
+7
-0
No files found.
lispref/ChangeLog
View file @
fda97484
2006
-
08
-
24
Chong
Yidong
<
cyd
@
stupidchicken
.
com
>
*
os
.
texi
(
Timers
):
Avoid
waiting
inside
timers
.
2006
-
08
-
21
Lute
Kamstra
<
lute
@
gnu
.
org
>
*
Makefile
.
in
:
Use
../
man
/
texinfo
.
tex
to
build
elisp
.
dvi
.
...
...
lispref/os.texi
View file @
fda97484
...
...
@@ -1394,6 +1394,13 @@ both before and after changing the buffer, to separate the timer's
changes from user commands' changes and prevent a single undo entry
from growing to be quite large.
Timer functions should also avoid calling functions that cause Emacs
to wait, such as @code{sit-for} (@pxref{Waiting}). This can lead to
unpredictable effects, since other timers (or even the same timer) can
run while waiting. If a timer function needs to perform an action
after a certain time has elapsed, it can do this by scheduling a new
timer.
If a timer function calls functions that can change the match data,
it should save and restore the match data. @xref{Saving Match Data}.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment