Skip to content

Commit

Permalink
(cl-old-mapc): Removed; don't defalias mapc.
Browse files Browse the repository at this point in the history
(cl-mapc): Use mapc instead of cl-old-mapc.
  • Loading branch information
Gerd Moellmann committed Jul 5, 2000
1 parent 7931b70 commit 6ee766a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lisp/emacs-lisp/cl-extra.el
Expand Up @@ -152,15 +152,12 @@ the elements themselves."
(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."
Expand Down

0 comments on commit 6ee766a

Please sign in to comment.