summaryrefslogtreecommitdiff
path: root/lispref/processes.texi
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-11-22 04:33:40 +0000
committerRichard M. Stallman <rms@gnu.org>1994-11-22 04:33:40 +0000
commit4f4265abf2fc40fcf6f86e1a04d9c387ab97f976 (patch)
tree71933c842f7f34438299a08093212d635a91db8d /lispref/processes.texi
parentd1280259390d7e614b421d87dd0dee5ec92ad23b (diff)
downloademacs-4f4265abf2fc40fcf6f86e1a04d9c387ab97f976.tar.gz
Match data now saved automatically around filters and sentinels.
Diffstat (limited to 'lispref/processes.texi')
-rw-r--r--lispref/processes.texi16
1 files changed, 8 insertions, 8 deletions
diff --git a/lispref/processes.texi b/lispref/processes.texi
index 2758cd70e8a..e71d7efeaaf 100644
--- a/lispref/processes.texi
+++ b/lispref/processes.texi
@@ -892,10 +892,10 @@ text arrives, insert the following line just before the
it was previously, eliminate the variable @code{moving} and call
@code{goto-char} unconditionally.
- All filter functions that do regexp searching or matching should save
-and restore the match data. Otherwise, a filter function that runs
-during a call to @code{sit-for} might clobber the match data of the
-program that called @code{sit-for}. @xref{Match Data}.
+ In earlier Emacs versions, every filter function that did regexp
+searching or matching had to explicitly save and restore the match data.
+Now Emacs does this automatically; filter functions never need to do it
+explicitly. @xref{Match Data}.
A filter function that writes the output into the buffer of the
process should check whether the process is still alive. If it tries to
@@ -1052,10 +1052,10 @@ should check whether the process is still alive. If it tries to insert
into a dead buffer, it will get an error. If the buffer is dead,
@code{(buffer-name (process-buffer @var{process}))} returns @code{nil}.
- All sentinels that do regexp searching or matching should save and
-restore the match data. Otherwise, a sentinel that runs during a call
-to @code{sit-for} might clobber the match data of the program that
-called @code{sit-for}. @xref{Match Data}.
+ In earlier Emacs versions, every sentinel that did regexp searching or
+matching had to explicitly save and restore the match data. Now Emacs
+does this automatically; sentinels never need to do it explicitly.
+@xref{Match Data}.
@defun set-process-sentinel process sentinel
This function associates @var{sentinel} with @var{process}. If