diff options
| author | Richard M. Stallman | 2005-01-01 03:51:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-01-01 03:51:46 +0000 |
| commit | c734ae59326fb107e3b5d6078fd19d5f45451b67 (patch) | |
| tree | 2e34ecf1f006b727c901bc4c742cbb7acf1eb925 | |
| parent | b437860aadfd97807b3fcdee9c1e8808c03ba312 (diff) | |
| download | emacs-c734ae59326fb107e3b5d6078fd19d5f45451b67.tar.gz emacs-c734ae59326fb107e3b5d6078fd19d5f45451b67.zip | |
(Timers): Update previous change.
| -rw-r--r-- | lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | lispref/os.texi | 13 |
2 files changed, 8 insertions, 9 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index c245d26870d..5d727172dba 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-12-31 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * os.texi (Timers): Update previous change. | ||
| 4 | |||
| 1 | 2004-12-30 Kim F. Storm <storm@cua.dk> | 5 | 2004-12-30 Kim F. Storm <storm@cua.dk> |
| 2 | 6 | ||
| 3 | * display.texi (Line Height): Total line-height is now specified | 7 | * display.texi (Line Height): Total line-height is now specified |
diff --git a/lispref/os.texi b/lispref/os.texi index 36d7f960850..ebc27224c96 100644 --- a/lispref/os.texi +++ b/lispref/os.texi | |||
| @@ -1368,10 +1368,10 @@ because most timer functions don't do a lot of work. Indeed, for a | |||
| 1368 | timer to call a function that takes substantial time to run is likely | 1368 | timer to call a function that takes substantial time to run is likely |
| 1369 | to be annoying. | 1369 | to be annoying. |
| 1370 | 1370 | ||
| 1371 | Timer functions should normally not alter the current buffer | 1371 | It is usually a bad idea for timer functions to alter buffer |
| 1372 | contents, but it may be ok to alter some other buffer that exists for | 1372 | contents. When they do, they usually should call @code{undo-boundary} |
| 1373 | special purposes. A general guideline is that if a buffer has undo | 1373 | both before and after changing the buffer, to separate the timer's |
| 1374 | enabled, timers should not write in it. | 1374 | changes from user commands' changes. |
| 1375 | 1375 | ||
| 1376 | @deffn Command run-at-time time repeat function &rest args | 1376 | @deffn Command run-at-time time repeat function &rest args |
| 1377 | This sets up a timer that calls the function @var{function} with | 1377 | This sets up a timer that calls the function @var{function} with |
| @@ -1486,11 +1486,6 @@ minutes, and even if there have been garbage collections and autosaves. | |||
| 1486 | input. Then it becomes idle again, and all the idle timers that are | 1486 | input. Then it becomes idle again, and all the idle timers that are |
| 1487 | set up to repeat will subsequently run another time, one by one. | 1487 | set up to repeat will subsequently run another time, one by one. |
| 1488 | 1488 | ||
| 1489 | It is legitimate for an idle timer to edit the current buffer. If | ||
| 1490 | it does, it should explicitly call @code{undo-boundary} once at the | ||
| 1491 | beginning and once just before exiting, since Emacs won't do that | ||
| 1492 | automatically for an idle timer. | ||
| 1493 | |||
| 1494 | @defun cancel-timer timer | 1489 | @defun cancel-timer timer |
| 1495 | Cancel the requested action for @var{timer}, which should be a value | 1490 | Cancel the requested action for @var{timer}, which should be a value |
| 1496 | previously returned by @code{run-at-time} or @code{run-with-idle-timer}. | 1491 | previously returned by @code{run-at-time} or @code{run-with-idle-timer}. |