]> code.delx.au - gnu-emacs/commitdiff
Revert "Re-enable checks in member, memql, delete to complain about non-lists"
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 30 Jan 2016 09:39:20 +0000 (10:39 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 30 Jan 2016 09:39:20 +0000 (10:39 +0100)
This reverts commit f524e8b7f12d9b5a8b92084e5385429fe7b085b9.

src/fns.c

index d1808440966bb0c066bab26d34e71f59ec2b9550..86ad333702e53c5ae2738e4e971def8ed369aab9 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -1349,7 +1349,7 @@ The value is actually the tail of LIST whose car is ELT.  */)
   (register Lisp_Object elt, Lisp_Object list)
 {
   register Lisp_Object tail;
-  for (tail = list; !NILP (tail); tail = XCDR (tail))
+  for (tail = list; CONSP (tail); tail = XCDR (tail))
     {
       register Lisp_Object tem;
       CHECK_LIST_CONS (tail, list);
@@ -1397,7 +1397,7 @@ The value is actually the tail of LIST whose car is ELT.  */)
   if (!FLOATP (elt))
     return Fmemq (elt, list);
 
-  for (tail = list; !NILP (tail); tail = XCDR (tail))
+  for (tail = list; CONSP (tail); tail = XCDR (tail))
     {
       register Lisp_Object tem;
       CHECK_LIST_CONS (tail, list);
@@ -1710,7 +1710,7 @@ changing the value of a sequence `foo'.  */)
     {
       Lisp_Object tail, prev;
 
-      for (tail = seq, prev = Qnil; !NILP (tail); tail = XCDR (tail))
+      for (tail = seq, prev = Qnil; CONSP (tail); tail = XCDR (tail))
        {
          CHECK_LIST_CONS (tail, seq);