# HG changeset patch # User Richard M. Stallman # Date 979329069 0 # Node ID be18bd846968b772be493bcfb15ff2dd26456afb # Parent 3da2255fbb3e22bdfe081b6c426e841f24cea01e (last): Handle a list that doesn't end in nil. diff -r 3da2255fbb3e -r be18bd846968 lisp/subr.el --- a/lisp/subr.el Fri Jan 12 19:48:56 2001 +0000 +++ b/lisp/subr.el Fri Jan 12 19:51:09 2001 +0000 @@ -131,7 +131,7 @@ (setq m (1+ m) p (cdr p))) (if (<= n 0) p (if (< n m) (nthcdr (- m n) x) x))) - (while (cdr x) + (while (consp (cdr x)) (setq x (cdr x))) x))