diff options
| author | Chong Yidong | 2006-09-25 15:20:44 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-09-25 15:20:44 +0000 |
| commit | 2d56beeda61a7ed6551d889119040310c5658695 (patch) | |
| tree | bfcb3411da1a1e1090381f40087dd21283ade9b5 /lispref | |
| parent | 94019f61df9c9d3fcdc9c2bf2b88c7d31b1f21ca (diff) | |
| download | emacs-2d56beeda61a7ed6551d889119040310c5658695.tar.gz emacs-2d56beeda61a7ed6551d889119040310c5658695.zip | |
* os.texi (Timers): Mention with-local-quit.
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | lispref/os.texi | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 2740462384c..fe0d430f873 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-09-25 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * os.texi (Timers): Mention with-local-quit. | ||
| 4 | |||
| 1 | 2006-09-24 Richard Stallman <rms@gnu.org> | 5 | 2006-09-24 Richard Stallman <rms@gnu.org> |
| 2 | 6 | ||
| 3 | * searching.texi (Searching and Matching): Mention property search. | 7 | * searching.texi (Searching and Matching): Mention property search. |
diff --git a/lispref/os.texi b/lispref/os.texi index 6c2d660709e..65cb0b906af 100644 --- a/lispref/os.texi +++ b/lispref/os.texi | |||
| @@ -1386,7 +1386,12 @@ function, because quitting out of many timer functions can leave | |||
| 1386 | things in an inconsistent state. This is normally unproblematical | 1386 | things in an inconsistent state. This is normally unproblematical |
| 1387 | because most timer functions don't do a lot of work. Indeed, for a | 1387 | because most timer functions don't do a lot of work. Indeed, for a |
| 1388 | timer to call a function that takes substantial time to run is likely | 1388 | timer to call a function that takes substantial time to run is likely |
| 1389 | to be annoying. | 1389 | to be annoying. If a timer function needs to allow quitting, it |
| 1390 | should use @code{with-local-quit} (@pxref{Quitting}). For example, if | ||
| 1391 | a timer function calls @code{accept-process-output} to receive output | ||
| 1392 | from an external process, that call should be wrapped inside | ||
| 1393 | @code{with-local-quit}, to ensure that @kbd{C-g} works if the external | ||
| 1394 | process hangs. | ||
| 1390 | 1395 | ||
| 1391 | It is usually a bad idea for timer functions to alter buffer | 1396 | It is usually a bad idea for timer functions to alter buffer |
| 1392 | contents. When they do, they usually should call @code{undo-boundary} | 1397 | contents. When they do, they usually should call @code{undo-boundary} |