]> code.delx.au - gnu-emacs/commitdiff
(cd): Use `mapc' rather than `mapcar'.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 25 Sep 2007 11:05:46 +0000 (11:05 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 25 Sep 2007 11:05:46 +0000 (11:05 +0000)
lisp/files.el

index 1effa5b4c5925d009043865770266efa30f3a772..33bf434a9f6bd0803def766face255571d62ebef 100644 (file)
@@ -643,7 +643,7 @@ The path separator is colon in GNU and GNU-like systems."
        (let ((trypath (parse-colon-path (getenv "CDPATH"))))
          (setq cd-path (or trypath (list "./")))))
     (if (not (catch 'found
-              (mapcar
+              (mapc
                (function (lambda (x)
                            (let ((f (expand-file-name (concat x dir))))
                              (if (file-directory-p f)