From: Glenn Morris Date: Sat, 13 Oct 2007 03:01:12 +0000 (+0000) Subject: (c-make-styles-buffer-local) X-Git-Url: https://git.hcoop.net/bpt/emacs.git/commitdiff_plain/21a55d57bec4b1b2cbbf5d15fb0b7f1caebcac07 (c-make-styles-buffer-local) (c-set-style): Use mapc rather than mapcar. --- diff --git a/lisp/progmodes/cc-styles.el b/lisp/progmodes/cc-styles.el index c5b9b06381..1ffcb170ca 100644 --- a/lisp/progmodes/cc-styles.el +++ b/lisp/progmodes/cc-styles.el @@ -381,11 +381,11 @@ a null operation." ;; fallback entry. (setq c-special-indent-hook (default-value 'c-special-indent-hook))) - (mapcar (lambda (elem) - (c-set-style-1 elem dont-override)) - ;; Need to go through the variables backwards when we - ;; don't override any settings. - (if (eq dont-override t) (nreverse vars) vars))) + (mapc (lambda (elem) + (c-set-style-1 elem dont-override)) + ;; Need to go through the variables backwards when we + ;; don't override any settings. + (if (eq dont-override t) (nreverse vars) vars))) (setq c-indentation-style stylename) (c-keep-region-active)) @@ -636,7 +636,7 @@ any reason to call this function directly." 'make-variable-buffer-local)) (varsyms (cons 'c-indentation-style (copy-alist c-style-variables)))) (delq 'c-special-indent-hook varsyms) - (mapcar func varsyms) + (mapc func varsyms) ;; Hooks must be handled specially (if this-buf-only-p (make-local-hook 'c-special-indent-hook)