diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/process.c | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b2b2bf22360..afb6ce8b7b3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-03-01 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * process.c (send_process_object): Check the process status and | ||
| 4 | signal an error if something is wrong. | ||
| 5 | |||
| 1 | 2007-02-28 Chong Yidong <cyd@stupidchicken.com> | 6 | 2007-02-28 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * insdel.c (Fcombine_after_change_execute): Return nil if | 8 | * insdel.c (Fcombine_after_change_execute): Return nil if |
diff --git a/src/process.c b/src/process.c index 7f651e36700..78fc400e5a2 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5694,8 +5694,16 @@ send_process_object (proc, start, end) | |||
| 5694 | : ! NILP (XBUFFER (object)->enable_multibyte_characters)) | 5694 | : ! NILP (XBUFFER (object)->enable_multibyte_characters)) |
| 5695 | { | 5695 | { |
| 5696 | struct Lisp_Process *p = XPROCESS (proc); | 5696 | struct Lisp_Process *p = XPROCESS (proc); |
| 5697 | struct coding_system *coding = proc_encode_coding_system[XINT (p->outfd)]; | 5697 | struct coding_system *coding; |
| 5698 | 5698 | ||
| 5699 | if (p->raw_status_new) | ||
| 5700 | update_status (p); | ||
| 5701 | if (! EQ (p->status, Qrun)) | ||
| 5702 | error ("Process %s not running", SDATA (p->name)); | ||
| 5703 | if (XINT (p->outfd) < 0) | ||
| 5704 | error ("Output file descriptor of %s is closed", SDATA (p->name)); | ||
| 5705 | |||
| 5706 | coding = proc_encode_coding_system[XINT (p->outfd)]; | ||
| 5699 | if (! EQ (coding->symbol, p->encode_coding_system)) | 5707 | if (! EQ (coding->symbol, p->encode_coding_system)) |
| 5700 | /* The coding system for encoding was changed to raw-text | 5708 | /* The coding system for encoding was changed to raw-text |
| 5701 | because we sent a unibyte text previously. Now we are | 5709 | because we sent a unibyte text previously. Now we are |