changeset 90432:0608690171d1

(Ffind_operation_coding_system): Sync with HEAD.
author Kenichi Handa <handa@m17n.org>
date Thu, 08 Jun 2006 06:48:34 +0000
parents 884c305a9799
children b2d7f23441da
files src/coding.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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))