# HG changeset patch # User Kenichi Handa # Date 1149749314 0 # Node ID 0608690171d13e7e3c7d13ed26c2c7632200696e # Parent 884c305a97990d99913c3d85cd5030a686ca3a06 (Ffind_operation_coding_system): Sync with HEAD. diff -r 884c305a9799 -r 0608690171d1 src/coding.c --- a/src/coding.c Thu Jun 08 06:48:23 2006 +0000 +++ b/src/coding.c Thu Jun 08 06:48:34 2006 +0000 @@ -8353,8 +8353,12 @@ SDATA (SYMBOL_NAME (operation))); target = args[XINT (target_idx) + 1]; if (!(STRINGP (target) + || (EQ (operation, Qinsert_file_contents) && CONSP (target) + && STRINGP (XCAR (target)) && BUFFERP (XCDR (target))) || (EQ (operation, Qopen_network_stream) && INTEGERP (target)))) error ("Invalid %dth argument", XINT (target_idx) + 1); + if (CONSP (target)) + target = XCAR (target); chain = ((EQ (operation, Qinsert_file_contents) || EQ (operation, Qwrite_region))