(c-before-hack-hook, c-postprocess-file-styles): Give invocation of

`c-set-style' DONT-OVERRIDE parameter of t.  Already set style variables will
thus not be overridden by style settings given by `c-file-syle'.
This commit is contained in:
Alan Mackenzie 2009-07-18 20:42:55 +00:00
parent 982cbcabc0
commit c82f92a0fd

View file

@ -670,7 +670,7 @@ This function is called from the hook `before-hack-local-variables-hook'."
(offsets (cdr (assq 'c-file-offsets file-local-variables-alist))))
(when stile
(or (stringp stile) (error "c-file-style is not a string"))
(c-set-style stile))
(c-set-style stile t))
(when offsets
(mapc
(lambda (langentry)
@ -741,7 +741,7 @@ Note that the style variables are always made local to the buffer."
(when c-file-style
(or (stringp c-file-style)
(error "c-file-style is not a string"))
(c-set-style c-file-style))
(c-set-style c-file-style t))
(and c-file-offsets
(mapc