summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-03-05 22:53:55 +0000
committerRichard M. Stallman <rms@gnu.org>1996-03-05 22:53:55 +0000
commitf33297cadc5262ea81046830cfb5f24bc952179a (patch)
treeb0a76cc82c9d425891d9e57bf323c2cde65155bc
parent5ebea921322d97502e97f3e8dda573ae8ccbd444 (diff)
downloademacs-f33297cadc5262ea81046830cfb5f24bc952179a.tar.gz
(equalp): Correctly compare last elt of two lists.
-rw-r--r--lisp/emacs-lisp/cl-extra.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el
index ac6ba7f630a..a9201444b0d 100644
--- a/lisp/emacs-lisp/cl-extra.el
+++ b/lisp/emacs-lisp/cl-extra.el
@@ -89,7 +89,8 @@ strings case-insensitively."
((numberp x)
(and (numberp y) (= x y)))
((consp x)
- (while (and (consp x) (consp y) (equalp (cl-pop x) (cl-pop y))))
+ (while (and (consp x) (consp y) (equalp (car x) (car y)))
+ (setq x (cdr x) y (cdr y)))
(and (not (consp x)) (equalp x y)))
((vectorp x)
(and (vectorp y) (= (length x) (length y))