diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 | ||