# HG changeset patch # User Juanma Barranquero # Date 1190718804 0 # Node ID c73290ec60edcd37818f5e62aca17f56a7609a8b # Parent 0cff28bd3f6bf1bb85234d323565b62c937a4f4c (clone-buffer): Use `mapc' rather than `mapcar'. diff -r 0cff28bd3f6b -r c73290ec60ed lisp/simple.el --- a/lisp/simple.el Tue Sep 25 11:12:22 2007 +0000 +++ b/lisp/simple.el Tue Sep 25 11:13:24 2007 +0000 @@ -5548,13 +5548,13 @@ (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).