+2010-10-13 Stephen Berman <stephen.berman@gmx.net>
+
+ * subr.el (last): Use `safe-length' instead of `length' (bug#7206).
+
2010-10-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/tls.el (tls-program): Remove spurious %s from openssl.
If N is bigger than the length of LIST, return LIST."
(if n
(and (> n 0)
- (let ((m (length list)))
+ (let ((m (safe-length list)))
(if (< n m) (nthcdr (- m n) list) list)))
(and list
- (nthcdr (1- (length list)) list))))
+ (nthcdr (1- (safe-length list)) list))))
(defun butlast (list &optional n)
"Return a copy of LIST with the last N elements removed."