Show
Ignore:
Timestamp:
07/29/06 07:48:34 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/progmodes/cc-mode.el

    r4111 r4131  
    154154  (setq c-buffer-is-cc-mode nil)) 
    155155 
     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 
    156164(defun c-init-language-vars-for (mode) 
    157165  "Initialize the language variables for one of the language modes 
     
    160168those, rather than a derived language defined through the language 
    161169variable system (see \"cc-langs.el\")." 
     170  (c-make-emacs-variables-local) 
    162171  (cond ((eq mode 'c-mode)    (c-init-language-vars c-mode)) 
    163172        ((eq mode 'c++-mode)  (c-init-language-vars c++-mode))