Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
21a55d57
Commit
21a55d57
authored
Oct 13, 2007
by
Glenn Morris
Browse files
(c-make-styles-buffer-local)
(c-set-style): Use mapc rather than mapcar.
parent
dba01120
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lisp/progmodes/cc-styles.el
lisp/progmodes/cc-styles.el
+6
-6
No files found.
lisp/progmodes/cc-styles.el
View file @
21a55d57
...
...
@@ -381,11 +381,11 @@ a null operation."
;; fallback entry.
(
setq
c-special-indent-hook
(
default-value
'c-special-indent-hook
)))
(
mapc
ar
(
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
)
(
mapc
ar
func
varsyms
)
(
mapc
func
varsyms
)
;; Hooks must be handled specially
(
if
this-buf-only-p
(
make-local-hook
'c-special-indent-hook
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment