diff options
| author | Glenn Morris | 2007-10-13 03:01:12 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-13 03:01:12 +0000 |
| commit | 21a55d57bec4b1b2cbbf5d15fb0b7f1caebcac07 (patch) | |
| tree | 3234015a181134963c024da04f15a2175eb72723 | |
| parent | dba011204d6b294bc9f5c2404131e4f5122737d9 (diff) | |
| download | emacs-21a55d57bec4b1b2cbbf5d15fb0b7f1caebcac07.tar.gz emacs-21a55d57bec4b1b2cbbf5d15fb0b7f1caebcac07.zip | |
(c-make-styles-buffer-local)
(c-set-style): Use mapc rather than mapcar.
| -rw-r--r-- | lisp/progmodes/cc-styles.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/progmodes/cc-styles.el b/lisp/progmodes/cc-styles.el index c5b9b063812..1ffcb170ca3 100644 --- a/lisp/progmodes/cc-styles.el +++ b/lisp/progmodes/cc-styles.el | |||
| @@ -381,11 +381,11 @@ a null operation." | |||
| 381 | ;; fallback entry. | 381 | ;; fallback entry. |
| 382 | (setq c-special-indent-hook | 382 | (setq c-special-indent-hook |
| 383 | (default-value 'c-special-indent-hook))) | 383 | (default-value 'c-special-indent-hook))) |
| 384 | (mapcar (lambda (elem) | 384 | (mapc (lambda (elem) |
| 385 | (c-set-style-1 elem dont-override)) | 385 | (c-set-style-1 elem dont-override)) |
| 386 | ;; Need to go through the variables backwards when we | 386 | ;; Need to go through the variables backwards when we |
| 387 | ;; don't override any settings. | 387 | ;; don't override any settings. |
| 388 | (if (eq dont-override t) (nreverse vars) vars))) | 388 | (if (eq dont-override t) (nreverse vars) vars))) |
| 389 | (setq c-indentation-style stylename) | 389 | (setq c-indentation-style stylename) |
| 390 | (c-keep-region-active)) | 390 | (c-keep-region-active)) |
| 391 | 391 | ||
| @@ -636,7 +636,7 @@ any reason to call this function directly." | |||
| 636 | 'make-variable-buffer-local)) | 636 | 'make-variable-buffer-local)) |
| 637 | (varsyms (cons 'c-indentation-style (copy-alist c-style-variables)))) | 637 | (varsyms (cons 'c-indentation-style (copy-alist c-style-variables)))) |
| 638 | (delq 'c-special-indent-hook varsyms) | 638 | (delq 'c-special-indent-hook varsyms) |
| 639 | (mapcar func varsyms) | 639 | (mapc func varsyms) |
| 640 | ;; Hooks must be handled specially | 640 | ;; Hooks must be handled specially |
| 641 | (if this-buf-only-p | 641 | (if this-buf-only-p |
| 642 | (make-local-hook 'c-special-indent-hook) | 642 | (make-local-hook 'c-special-indent-hook) |