summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-extra.el
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-04-19 22:31:21 +0000
committerDave Love <fx@gnu.org>2000-04-19 22:31:21 +0000
commite10b9e326475eed5323c4675d514595578942c09 (patch)
tree19c894bebee4e6a2e2fe6f3722b6d995b69386b7 /lisp/emacs-lisp/cl-extra.el
parent5c6740c9795c94fa1c974a3a9e19390f9fae571c (diff)
downloademacs-e10b9e326475eed5323c4675d514595578942c09.tar.gz
(cl-old-mapc): Fix definition.
(cl-mapc): Rename from mapc. Fix the funcall.
Diffstat (limited to 'lisp/emacs-lisp/cl-extra.el')
-rw-r--r--lisp/emacs-lisp/cl-extra.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el
index 505fa2cc3d0..79b6306bfc5 100644
--- a/lisp/emacs-lisp/cl-extra.el
+++ b/lisp/emacs-lisp/cl-extra.el
@@ -152,14 +152,15 @@ the elements themselves."
(setq cl-list (cdr cl-list)))
(nreverse cl-res))))
-(defvar cl-old-mapc (symbol-function 'mapc))
+(defvar cl-old-mapc (prog1 (symbol-function 'mapc)
+ (defalias 'mapc 'cl-mapc)))
-(defun mapc (cl-func cl-seq &rest cl-rest)
+(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)))
+ (funcall cl-old-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."