+2003-04-24 Lars Hansen <larsh@math.ku.dk>
+
+ * subr.el (assq-delete-all): Ignore non-cons elememts.
+
2003-04-24 John Paul Wallington <jpw@gnu.org>
* help-mode.el (help-make-xrefs): Remove extra paren.
(defun assq-delete-all (key alist)
"Delete from ALIST all elements whose car is KEY.
-Return the modified alist."
+Return the modified alist.
+Elements of ALIST that are not conses are ignored."
(let ((tail alist))
(while tail
- (if (eq (car (car tail)) key)
+ (if (and (consp (car tail)) (eq (car (car tail)) key))
(setq alist (delq (car tail) alist)))
(setq tail (cdr tail)))
alist))