Mercurial > emacs
changeset 30074:e06697d4135f
(cl-old-mapc): Removed; don't defalias mapc.
(cl-mapc): Use mapc instead of cl-old-mapc.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 05 Jul 2000 17:29:40 +0000 |
parents | ed8f34a43649 |
children | 39e2dae95929 |
files | lisp/emacs-lisp/cl-extra.el |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/cl-extra.el Wed Jul 05 17:24:19 2000 +0000 +++ b/lisp/emacs-lisp/cl-extra.el Wed Jul 05 17:29:40 2000 +0000 @@ -152,15 +152,12 @@ (setq cl-list (cdr cl-list))) (nreverse cl-res)))) -(defvar cl-old-mapc (prog1 (symbol-function 'mapc) - (defalias 'mapc 'cl-mapc))) - (defun cl-mapc (cl-func cl-seq &rest cl-rest) "Like `mapcar', but does not accumulate values returned by the function." (if cl-rest (progn (apply 'map nil cl-func cl-seq cl-rest) cl-seq) - (funcall cl-old-mapc cl-func cl-seq))) + (mapc cl-func cl-seq))) (defun mapl (cl-func cl-list &rest cl-rest) "Like `maplist', but does not accumulate values returned by the function."