]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fset_match_data): Use CHECK_LIST.
authorKim F. Storm <storm@cua.dk>
Wed, 12 Jul 2006 13:20:32 +0000 (13:20 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 12 Jul 2006 13:20:32 +0000 (13:20 +0000)
src/search.c

index 99db7f184fc22673ea07bc4773dd730d03585ce9..fe12409100974fb898602c16d3c25af8290e7332 100644 (file)
@@ -2874,8 +2874,7 @@ If optional arg RESEAT is non-nil, make markers on LIST point nowhere.  */)
   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.  */