# HG changeset patch # User Stefan Monnier # Date 1272551349 14400 # Node ID 745e12b5af4aee93967d33d55f15cb63eaa37128 # Parent ee8e46e5ac6dd21040a41f548b2e2ae850dfa34c 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. diff -r ee8e46e5ac6d -r 745e12b5af4a src/ChangeLog --- a/src/ChangeLog Thu Apr 29 16:23:12 2010 +0200 +++ b/src/ChangeLog Thu Apr 29 10:29:09 2010 -0400 @@ -1,5 +1,8 @@ 2010-04-29 Stefan Monnier + * process.c (read_process_output, exec_sentinel): Don't burp if the + sentinel/filter kills the current buffer (bug#6060). + Fix wrong-docstring problem introduced with hash-consing. (Bug#6008) * eval.c (Fautoload): Set doc to a unique number rather than to 0. Remove unused var `args'. diff -r ee8e46e5ac6d -r 745e12b5af4a src/process.c --- a/src/process.c Thu Apr 29 16:23:12 2010 +0200 +++ b/src/process.c Thu Apr 29 10:29:09 2010 -0400 @@ -5396,7 +5396,7 @@ /* There's no good reason to let process filters change the current buffer, and many callers of accept-process-output, sit-for, and friends don't expect current-buffer to be changed from under them. */ - record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); + record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ()); /* Read and dispose of the process output. */ outstream = p->filter; @@ -6814,7 +6814,7 @@ /* There's no good reason to let sentinels change the current buffer, and many callers of accept-process-output, sit-for, and friends don't expect current-buffer to be changed from under them. */ - record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); + record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ()); sentinel = p->sentinel; if (NILP (sentinel))