aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-07-05 17:29:40 +0000
committerGerd Moellmann2000-07-05 17:29:40 +0000
commite2b1c424356b717e6f4e9c6064065ff394c07131 (patch)
treeb40970be5e1caf569a7fb851fe08014005dd44ed
parenta2ff3819f64ba2d79b3fc92756a13332afd6a37e (diff)
downloademacs-e2b1c424356b717e6f4e9c6064065ff394c07131.tar.gz
emacs-e2b1c424356b717e6f4e9c6064065ff394c07131.zip
(cl-old-mapc): Removed; don't defalias mapc.
(cl-mapc): Use mapc instead of cl-old-mapc.
-rw-r--r--lisp/emacs-lisp/cl-extra.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el
index 79b6306bfc5..1784d65a9b6 100644
--- a/lisp/emacs-lisp/cl-extra.el
+++ b/lisp/emacs-lisp/cl-extra.el
@@ -152,15 +152,12 @@ the elements themselves."
152 (setq cl-list (cdr cl-list))) 152 (setq cl-list (cdr cl-list)))
153 (nreverse cl-res)))) 153 (nreverse cl-res))))
154 154
155(defvar cl-old-mapc (prog1 (symbol-function 'mapc)
156 (defalias 'mapc 'cl-mapc)))
157
158(defun cl-mapc (cl-func cl-seq &rest cl-rest) 155(defun cl-mapc (cl-func cl-seq &rest cl-rest)
159 "Like `mapcar', but does not accumulate values returned by the function." 156 "Like `mapcar', but does not accumulate values returned by the function."
160 (if cl-rest 157 (if cl-rest
161 (progn (apply 'map nil cl-func cl-seq cl-rest) 158 (progn (apply 'map nil cl-func cl-seq cl-rest)
162 cl-seq) 159 cl-seq)
163 (funcall cl-old-mapc cl-func cl-seq))) 160 (mapc cl-func cl-seq)))
164 161
165(defun mapl (cl-func cl-list &rest cl-rest) 162(defun mapl (cl-func cl-list &rest cl-rest)
166 "Like `maplist', but does not accumulate values returned by the function." 163 "Like `maplist', but does not accumulate values returned by the function."