/[emacs]/emacs/lisp/progmodes/cc-styles.el
ViewVC logotype

Diff of /emacs/lisp/progmodes/cc-styles.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by mast, Sat Jun 8 23:37:37 2002 UTC revision 1.25.2.1 by miles, Fri Apr 4 06:20:32 2003 UTC
# Line 445  and exists only for compatibility reason Line 445  and exists only for compatibility reason
445                      ;; initial contents tries to be the last element                      ;; initial contents tries to be the last element
446                      ;; on the syntactic analysis list for the current                      ;; on the syntactic analysis list for the current
447                      ;; line                      ;; line
448                      (let* ((syntax (c-guess-basic-syntax))                      (and c-buffer-is-cc-mode
449                             (len (length syntax))                           (let* ((syntax (c-guess-basic-syntax))
450                             (ic (format "%s" (car (nth (1- len) syntax)))))                                  (len (length syntax))
451                        (cons ic 0))                                  (ic (format "%s" (car (nth (1- len) syntax)))))
452                               (cons ic 0)))
453                      )))                      )))
454            (offset (c-read-offset langelem)))            (offset (c-read-offset langelem)))
455       (list langelem offset current-prefix-arg)))       (list langelem offset current-prefix-arg)))
# Line 578  default. Line 579  default.
579    
580  If you edit many different styles of C (or C++, Objective-C, Java,  If you edit many different styles of C (or C++, Objective-C, Java,
581  etc) at the same time, you probably want the CC Mode style variables  etc) at the same time, you probably want the CC Mode style variables
582  to be buffer local.  If you do, it's advicable to set any CC Mode  to be buffer local.  If you do, it's advisable to set any CC Mode
583  style variables in a hook function (e.g. off of `c-mode-common-hook'),  style variables in a hook function (e.g. off of `c-mode-common-hook'),
584  instead of at the top level of your ~/.emacs file.  instead of at the top level of your ~/.emacs file.
585    

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.25.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26