From: Juanma Barranquero Date: Tue, 25 Sep 2007 11:13:24 +0000 (+0000) Subject: (clone-buffer): Use `mapc' rather than `mapcar'. X-Git-Tag: emacs-pretest-23.0.90~10662 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ca2204bbdb8b7883d89563e51ca6385a6d78a7e;p=emacs.git (clone-buffer): Use `mapc' rather than `mapcar'. --- diff --git a/lisp/simple.el b/lisp/simple.el index 1a100fa7bff..182c96ca44d 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -5548,13 +5548,13 @@ after it has been set up properly in other respects." (funcall mode) ;; Set up other local variables. - (mapcar (lambda (v) - (condition-case () ;in case var is read-only - (if (symbolp v) - (makunbound v) - (set (make-local-variable (car v)) (cdr v))) - (error nil))) - lvars) + (mapc (lambda (v) + (condition-case () ;in case var is read-only + (if (symbolp v) + (makunbound v) + (set (make-local-variable (car v)) (cdr v))) + (error nil))) + lvars) ;; Run any hooks (typically set up by the major mode ;; for cloning to work properly).