aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2006-08-25 02:58:08 +0000
committerChong Yidong2006-08-25 02:58:08 +0000
commitfda9748457d804a6e46ebc7054f0976aed516e71 (patch)
tree8365c4fc51b0b1b19f83a4d3f10eee818491e28b
parent6c5d6b6ce728bd25f6e72bfe8124059d6ded0744 (diff)
downloademacs-fda9748457d804a6e46ebc7054f0976aed516e71.tar.gz
emacs-fda9748457d804a6e46ebc7054f0976aed516e71.zip
* os.texi (Timers): Avoid waiting inside timers.
-rw-r--r--lispref/ChangeLog4
-rw-r--r--lispref/os.texi7
2 files changed, 11 insertions, 0 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 12528d35e55..50c945e3b11 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,7 @@
12006-08-24 Chong Yidong <cyd@stupidchicken.com>
2
3 * os.texi (Timers): Avoid waiting inside timers.
4
12006-08-21 Lute Kamstra <lute@gnu.org> 52006-08-21 Lute Kamstra <lute@gnu.org>
2 6
3 * Makefile.in: Use ../man/texinfo.tex to build elisp.dvi. 7 * Makefile.in: Use ../man/texinfo.tex to build elisp.dvi.
diff --git a/lispref/os.texi b/lispref/os.texi
index d227cf92bcf..b5522dc2a98 100644
--- a/lispref/os.texi
+++ b/lispref/os.texi
@@ -1394,6 +1394,13 @@ both before and after changing the buffer, to separate the timer's
1394changes from user commands' changes and prevent a single undo entry 1394changes from user commands' changes and prevent a single undo entry
1395from growing to be quite large. 1395from growing to be quite large.
1396 1396
1397 Timer functions should also avoid calling functions that cause Emacs
1398to wait, such as @code{sit-for} (@pxref{Waiting}). This can lead to
1399unpredictable effects, since other timers (or even the same timer) can
1400run while waiting. If a timer function needs to perform an action
1401after a certain time has elapsed, it can do this by scheduling a new
1402timer.
1403
1397 If a timer function calls functions that can change the match data, 1404 If a timer function calls functions that can change the match data,
1398it should save and restore the match data. @xref{Saving Match Data}. 1405it should save and restore the match data. @xref{Saving Match Data}.
1399 1406