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: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-styles.el
Date: Mon, 03 Oct 2005 17:21:36 -0400

Index: emacs/lisp/progmodes/cc-styles.el
diff -c emacs/lisp/progmodes/cc-styles.el:1.35 
emacs/lisp/progmodes/cc-styles.el:1.36
*** emacs/lisp/progmodes/cc-styles.el:1.35      Mon Aug  1 08:37:49 2005
--- emacs/lisp/progmodes/cc-styles.el   Mon Oct  3 21:21:35 2005
***************
*** 498,530 ****
    (let ((comment-line-prefix
         (concat "[ \t]*\\(" c-current-comment-prefix "\\)[ \t]*")))
  
!     (setq paragraph-start (concat comment-line-prefix
!                                 c-paragraph-start
!                                 "\\|"
!                                 page-delimiter)
!         paragraph-separate (concat comment-line-prefix
!                                    c-paragraph-separate
!                                    "\\|"
!                                    page-delimiter)
!         paragraph-ignore-fill-prefix t
!         adaptive-fill-mode t
!         adaptive-fill-regexp
!         (concat comment-line-prefix
!                 (if (default-value 'adaptive-fill-regexp)
!                     (concat "\\("
!                             (default-value 'adaptive-fill-regexp)
!                             "\\)")
!                   "")))
  
      (when (boundp 'adaptive-fill-first-line-regexp)
        ;; XEmacs (20.x) adaptive fill mode doesn't have this.
!       (make-local-variable 'adaptive-fill-first-line-regexp)
!       (setq adaptive-fill-first-line-regexp
!           (concat "\\`" comment-line-prefix
!                   ;; Maybe we should incorporate the old value here,
!                   ;; but then we have to do all sorts of kludges to
!                   ;; deal with the \` and \' it probably contains.
!                   "\\'")))))
  
  
  ;; Helper for setting up Filladapt mode.  It's not used by CC Mode itself.
--- 498,531 ----
    (let ((comment-line-prefix
         (concat "[ \t]*\\(" c-current-comment-prefix "\\)[ \t]*")))
  
!     (set (make-local-variable 'paragraph-start)
!          (concat comment-line-prefix
!                  c-paragraph-start
!                  "\\|"
!                  page-delimiter))
!     (set (make-local-variable 'paragraph-separate)
!          (concat comment-line-prefix
!                  c-paragraph-separate
!                  "\\|"
!                  page-delimiter))
!     (set (make-local-variable 'paragraph-ignore-fill-prefix) t)
!     (set (make-local-variable 'adaptive-fill-mode) t)
!     (set (make-local-variable 'adaptive-fill-regexp)
!          (concat comment-line-prefix
!                  (if (default-value 'adaptive-fill-regexp)
!                      (concat "\\("
!                              (default-value 'adaptive-fill-regexp)
!                              "\\)")
!                    "")))
  
      (when (boundp 'adaptive-fill-first-line-regexp)
        ;; XEmacs (20.x) adaptive fill mode doesn't have this.
!       (set (make-local-variable 'adaptive-fill-first-line-regexp)
!            (concat "\\`" comment-line-prefix
!                    ;; Maybe we should incorporate the old value here,
!                    ;; but then we have to do all sorts of kludges to
!                    ;; deal with the \` and \' it probably contains.
!                    "\\'")))))
  
  
  ;; Helper for setting up Filladapt mode.  It's not used by CC Mode itself.
***************
*** 626,630 ****
  
  (cc-provide 'cc-styles)
  
! ;;; arch-tag: c764f61a-96ba-484a-a68f-101c0e9d5d2c
  ;;; cc-styles.el ends here
--- 627,631 ----
  
  (cc-provide 'cc-styles)
  
! ;; arch-tag: c764f61a-96ba-484a-a68f-101c0e9d5d2c
  ;;; cc-styles.el ends here




reply via email to

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