aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorAlan Mackenzie2009-07-18 20:42:55 +0000
committerAlan Mackenzie2009-07-18 20:42:55 +0000
commitc82f92a0fdb3834d8a2bf690fa68ee34de46fcd1 (patch)
treebc1f37778d1abb8abd15686e9ac608ac7fa82300 /lisp
parent982cbcabc07cd26ef17894547a40745c9231479c (diff)
downloademacs-c82f92a0fdb3834d8a2bf690fa68ee34de46fcd1.tar.gz
emacs-c82f92a0fdb3834d8a2bf690fa68ee34de46fcd1.zip
(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'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/cc-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index dbdb2e7cc45..8d7ac9241f6 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -670,7 +670,7 @@ This function is called from the hook `before-hack-local-variables-hook'."
670 (offsets (cdr (assq 'c-file-offsets file-local-variables-alist)))) 670 (offsets (cdr (assq 'c-file-offsets file-local-variables-alist))))
671 (when stile 671 (when stile
672 (or (stringp stile) (error "c-file-style is not a string")) 672 (or (stringp stile) (error "c-file-style is not a string"))
673 (c-set-style stile)) 673 (c-set-style stile t))
674 (when offsets 674 (when offsets
675 (mapc 675 (mapc
676 (lambda (langentry) 676 (lambda (langentry)
@@ -741,7 +741,7 @@ Note that the style variables are always made local to the buffer."
741 (when c-file-style 741 (when c-file-style
742 (or (stringp c-file-style) 742 (or (stringp c-file-style)
743 (error "c-file-style is not a string")) 743 (error "c-file-style is not a string"))
744 (c-set-style c-file-style)) 744 (c-set-style c-file-style t))
745 745
746 (and c-file-offsets 746 (and c-file-offsets
747 (mapc 747 (mapc