diff src/search.c @ 71841:0b34cf45daa8

(Fset_match_data): Use CHECK_LIST.
author Kim F. Storm <storm@cua.dk>
date Wed, 12 Jul 2006 13:20:32 +0000
parents 7510757f449b
children 6dd00de34fff
line wrap: on
line diff
--- a/src/search.c	Wed Jul 12 13:19:54 2006 +0000
+++ b/src/search.c	Wed Jul 12 13:20:32 2006 +0000
@@ -2874,8 +2874,7 @@
   if (running_asynch_code)
     save_search_regs ();
 
-  if (!CONSP (list) && !NILP (list))
-    list = wrong_type_argument (Qconsp, list);
+  CHECK_LIST (list);
 
   /* Unless we find a marker with a buffer or an explicit buffer
      in LIST, assume that this match data came from a string.  */