aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2010-04-29 10:29:09 -0400
committerStefan Monnier2010-04-29 10:29:09 -0400
commitd2630aefd3b7b9b543dad2bb2f352238da67a933 (patch)
tree947e632087df165b9047ab876ad37ccd27be259a /src
parentf9dddf52913e213f85dac43fecad6620462f408d (diff)
downloademacs-d2630aefd3b7b9b543dad2bb2f352238da67a933.tar.gz
emacs-d2630aefd3b7b9b543dad2bb2f352238da67a933.zip
Don't burp if process sentinel/filter kills the current buffer.
* process.c (read_process_output, exec_sentinel): Don't burp if the sentinel/filter kills the current buffer. Fixes: debbugs:6060
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/process.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0f15ed95e0a..c24493293e8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12010-04-29 Stefan Monnier <monnier@iro.umontreal.ca> 12010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * process.c (read_process_output, exec_sentinel): Don't burp if the
4 sentinel/filter kills the current buffer (bug#6060).
5
3 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008) 6 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
4 * eval.c (Fautoload): Set doc to a unique number rather than to 0. 7 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5 Remove unused var `args'. 8 Remove unused var `args'.
diff --git a/src/process.c b/src/process.c
index 7e8f4cc57bc..29983b22858 100644
--- a/src/process.c
+++ b/src/process.c
@@ -5396,7 +5396,7 @@ read_process_output (proc, channel)
5396 /* There's no good reason to let process filters change the current 5396 /* There's no good reason to let process filters change the current
5397 buffer, and many callers of accept-process-output, sit-for, and 5397 buffer, and many callers of accept-process-output, sit-for, and
5398 friends don't expect current-buffer to be changed from under them. */ 5398 friends don't expect current-buffer to be changed from under them. */
5399 record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); 5399 record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ());
5400 5400
5401 /* Read and dispose of the process output. */ 5401 /* Read and dispose of the process output. */
5402 outstream = p->filter; 5402 outstream = p->filter;
@@ -6814,7 +6814,7 @@ exec_sentinel (proc, reason)
6814 /* There's no good reason to let sentinels change the current 6814 /* There's no good reason to let sentinels change the current
6815 buffer, and many callers of accept-process-output, sit-for, and 6815 buffer, and many callers of accept-process-output, sit-for, and
6816 friends don't expect current-buffer to be changed from under them. */ 6816 friends don't expect current-buffer to be changed from under them. */
6817 record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); 6817 record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ());
6818 6818
6819 sentinel = p->sentinel; 6819 sentinel = p->sentinel;
6820 if (NILP (sentinel)) 6820 if (NILP (sentinel))