diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index d11a300363d..8b1da4ac5cc 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5699,8 +5699,16 @@ send_process_object (proc, start, end) | |||
| 5699 | : ! NILP (XBUFFER (object)->enable_multibyte_characters)) | 5699 | : ! NILP (XBUFFER (object)->enable_multibyte_characters)) |
| 5700 | { | 5700 | { |
| 5701 | struct Lisp_Process *p = XPROCESS (proc); | 5701 | struct Lisp_Process *p = XPROCESS (proc); |
| 5702 | struct coding_system *coding = proc_encode_coding_system[XINT (p->outfd)]; | 5702 | struct coding_system *coding; |
| 5703 | 5703 | ||
| 5704 | if (p->raw_status_new) | ||
| 5705 | update_status (p); | ||
| 5706 | if (! EQ (p->status, Qrun)) | ||
| 5707 | error ("Process %s not running", SDATA (p->name)); | ||
| 5708 | if (XINT (p->outfd) < 0) | ||
| 5709 | error ("Output file descriptor of %s is closed", SDATA (p->name)); | ||
| 5710 | |||
| 5711 | coding = proc_encode_coding_system[XINT (p->outfd)]; | ||
| 5704 | if (! EQ (coding->symbol, p->encode_coding_system)) | 5712 | if (! EQ (coding->symbol, p->encode_coding_system)) |
| 5705 | /* The coding system for encoding was changed to raw-text | 5713 | /* The coding system for encoding was changed to raw-text |
| 5706 | because we sent a unibyte text previously. Now we are | 5714 | because we sent a unibyte text previously. Now we are |