emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el
Date: Mon, 03 Jun 2002 18:56:13 -0400

Index: emacs/lisp/progmodes/cc-mode.el
diff -c emacs/lisp/progmodes/cc-mode.el:1.20 
emacs/lisp/progmodes/cc-mode.el:1.21
*** emacs/lisp/progmodes/cc-mode.el:1.20        Sun Apr 21 20:35:36 2002
--- emacs/lisp/progmodes/cc-mode.el     Mon Jun  3 18:56:12 2002
***************
*** 391,407 ****
  
  Note that the style variables are always made local to the buffer."
    ;; apply file styles and offsets
!   (if (or c-file-style c-file-offsets)
!       (c-make-styles-buffer-local t))
!   (and c-file-style
!        (c-set-style c-file-style))
!   (and c-file-offsets
!        (mapcar
!       (lambda (langentry)
!         (let ((langelem (car langentry))
!               (offset (cdr langentry)))
!           (c-set-offset langelem offset)))
!       c-file-offsets)))
  
  (add-hook 'hack-local-variables-hook 'c-postprocess-file-styles)
  
--- 391,408 ----
  
  Note that the style variables are always made local to the buffer."
    ;; apply file styles and offsets
!   (when c-buffer-is-cc-mode
!     (if (or c-file-style c-file-offsets)
!       (c-make-styles-buffer-local t))
!     (and c-file-style
!        (c-set-style c-file-style))
!     (and c-file-offsets
!        (mapcar
!         (lambda (langentry)
!           (let ((langelem (car langentry))
!                 (offset (cdr langentry)))
!             (c-set-offset langelem offset)))
!         c-file-offsets))))
  
  (add-hook 'hack-local-variables-hook 'c-postprocess-file-styles)
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]