Changeset 4131 for trunk/lisp/progmodes/cc-mode.el
- Timestamp:
- 07/29/06 07:48:34 (2 years ago)
- Files:
-
- trunk/lisp/progmodes/cc-mode.el (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/progmodes/cc-mode.el
r4111 r4131 154 154 (setq c-buffer-is-cc-mode nil)) 155 155 156 ;; Make the `c-lang-setvar' variables buffer local in the current buffer. 157 ;; These are typically standard emacs variables such as `comment-start'. 158 (defmacro c-make-emacs-variables-local () 159 `(progn 160 ,@(mapcan (lambda (init) 161 `((make-local-variable ',(car init)))) 162 (cdr c-emacs-variable-inits)))) 163 156 164 (defun c-init-language-vars-for (mode) 157 165 "Initialize the language variables for one of the language modes … … 160 168 those, rather than a derived language defined through the language 161 169 variable system (see \"cc-langs.el\")." 170 (c-make-emacs-variables-local) 162 171 (cond ((eq mode 'c-mode) (c-init-language-vars c-mode)) 163 172 ((eq mode 'c++-mode) (c-init-language-vars c++-mode))
