aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2016-01-29 11:18:42 +0100
committerAndreas Schwab2016-01-30 10:39:59 +0100
commitd27c8078ef766dae3587bc82b70128a70efaa223 (patch)
tree344122b49488017eb58b86617d025f64e1e25898 /src
parent487bd7aedf9bbbf0b939b653912253fbeb7d16b9 (diff)
downloademacs-d27c8078ef766dae3587bc82b70128a70efaa223.tar.gz
emacs-d27c8078ef766dae3587bc82b70128a70efaa223.zip
Re-enable checks in member, memql, delete to complain about non-lists
* fns.c (Fmember, Fmemql, Fdelete): Revert 2007-10-16 change.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fns.c b/src/fns.c
index 86ad333702e..d1808440966 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -1349,7 +1349,7 @@ The value is actually the tail of LIST whose car is ELT. */)
1349 (register Lisp_Object elt, Lisp_Object list) 1349 (register Lisp_Object elt, Lisp_Object list)
1350{ 1350{
1351 register Lisp_Object tail; 1351 register Lisp_Object tail;
1352 for (tail = list; CONSP (tail); tail = XCDR (tail)) 1352 for (tail = list; !NILP (tail); tail = XCDR (tail))
1353 { 1353 {
1354 register Lisp_Object tem; 1354 register Lisp_Object tem;
1355 CHECK_LIST_CONS (tail, list); 1355 CHECK_LIST_CONS (tail, list);
@@ -1397,7 +1397,7 @@ The value is actually the tail of LIST whose car is ELT. */)
1397 if (!FLOATP (elt)) 1397 if (!FLOATP (elt))
1398 return Fmemq (elt, list); 1398 return Fmemq (elt, list);
1399 1399
1400 for (tail = list; CONSP (tail); tail = XCDR (tail)) 1400 for (tail = list; !NILP (tail); tail = XCDR (tail))
1401 { 1401 {
1402 register Lisp_Object tem; 1402 register Lisp_Object tem;
1403 CHECK_LIST_CONS (tail, list); 1403 CHECK_LIST_CONS (tail, list);
@@ -1710,7 +1710,7 @@ changing the value of a sequence `foo'. */)
1710 { 1710 {
1711 Lisp_Object tail, prev; 1711 Lisp_Object tail, prev;
1712 1712
1713 for (tail = seq, prev = Qnil; CONSP (tail); tail = XCDR (tail)) 1713 for (tail = seq, prev = Qnil; !NILP (tail); tail = XCDR (tail))
1714 { 1714 {
1715 CHECK_LIST_CONS (tail, seq); 1715 CHECK_LIST_CONS (tail, seq);
1716 1716