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-styles.el


From: Martin Stjernholm
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-styles.el
Date: Sun, 09 Feb 2003 19:50:27 -0500

Index: emacs/lisp/progmodes/cc-styles.el
diff -c emacs/lisp/progmodes/cc-styles.el:1.26 
emacs/lisp/progmodes/cc-styles.el:1.27
*** emacs/lisp/progmodes/cc-styles.el:1.26      Mon Jan 27 03:47:18 2003
--- emacs/lisp/progmodes/cc-styles.el   Sun Feb  9 19:50:26 2003
***************
*** 445,454 ****
                    ;; initial contents tries to be the last element
                    ;; on the syntactic analysis list for the current
                    ;; line
!                   (let* ((syntax (c-guess-basic-syntax))
!                          (len (length syntax))
!                          (ic (format "%s" (car (nth (1- len) syntax)))))
!                     (cons ic 0))
                    )))
          (offset (c-read-offset langelem)))
       (list langelem offset current-prefix-arg)))
--- 445,455 ----
                    ;; initial contents tries to be the last element
                    ;; on the syntactic analysis list for the current
                    ;; line
!                   (and c-buffer-is-cc-mode
!                        (let* ((syntax (c-guess-basic-syntax))
!                               (len (length syntax))
!                               (ic (format "%s" (car (nth (1- len) syntax)))))
!                          (cons ic 0)))
                    )))
          (offset (c-read-offset langelem)))
       (list langelem offset current-prefix-arg)))




reply via email to

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