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
2d56beed
Commit
2d56beed
authored
Sep 25, 2006
by
Chong Yidong
Browse files
* os.texi (Timers): Mention with-local-quit.
parent
94019f61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
lispref/ChangeLog
lispref/ChangeLog
+4
-0
lispref/os.texi
lispref/os.texi
+6
-1
No files found.
lispref/ChangeLog
View file @
2d56beed
2006
-
09
-
25
Chong
Yidong
<
cyd
@
stupidchicken
.
com
>
*
os
.
texi
(
Timers
):
Mention
with
-
local
-
quit
.
2006
-
09
-
24
Richard
Stallman
<
rms
@
gnu
.
org
>
*
searching
.
texi
(
Searching
and
Matching
):
Mention
property
search
.
...
...
lispref/os.texi
View file @
2d56beed
...
...
@@ -1386,7 +1386,12 @@ function, because quitting out of many timer functions can leave
things in an inconsistent state. This is normally unproblematical
because most timer functions don't do a lot of work. Indeed, for a
timer to call a function that takes substantial time to run is likely
to be annoying.
to be annoying. If a timer function needs to allow quitting, it
should use @code{with-local-quit} (@pxref{Quitting}). For example, if
a timer function calls @code{accept-process-output} to receive output
from an external process, that call should be wrapped inside
@code{with-local-quit}, to ensure that @kbd{C-g} works if the external
process hangs.
It is usually a bad idea for timer functions to alter buffer
contents. When they do, they usually should call @code{undo-boundary}
...
...
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