diff options
| author | Joakim Verona | 2012-01-23 15:10:06 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-01-23 15:10:06 +0100 |
| commit | 0322b140eead7c94de7f0f6d19a90bd15690b4eb (patch) | |
| tree | 950c011783cc896d0450084cb5155e54548bfe5b /lisp/progmodes/cc-mode.el | |
| parent | d5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (diff) | |
| parent | cb5850f27c1b4d26957d58e2da2314dd12498671 (diff) | |
| download | emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.tar.gz emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.zip | |
upstream
Diffstat (limited to 'lisp/progmodes/cc-mode.el')
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index b74d878516d..0c86b68f1d9 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -490,6 +490,7 @@ that requires a literal mode spec at compile time." | |||
| 490 | (make-local-variable 'paragraph-ignore-fill-prefix) | 490 | (make-local-variable 'paragraph-ignore-fill-prefix) |
| 491 | (make-local-variable 'adaptive-fill-mode) | 491 | (make-local-variable 'adaptive-fill-mode) |
| 492 | (make-local-variable 'adaptive-fill-regexp) | 492 | (make-local-variable 'adaptive-fill-regexp) |
| 493 | (make-local-variable 'fill-paragraph-handle-comment) | ||
| 493 | 494 | ||
| 494 | ;; now set their values | 495 | ;; now set their values |
| 495 | (set (make-local-variable 'parse-sexp-ignore-comments) t) | 496 | (set (make-local-variable 'parse-sexp-ignore-comments) t) |
| @@ -500,6 +501,9 @@ that requires a literal mode spec at compile time." | |||
| 500 | (set (make-local-variable 'comment-line-break-function) | 501 | (set (make-local-variable 'comment-line-break-function) |
| 501 | 'c-indent-new-comment-line) | 502 | 'c-indent-new-comment-line) |
| 502 | 503 | ||
| 504 | ;; For the benefit of adaptive file, which otherwise mis-fills. | ||
| 505 | (setq fill-paragraph-handle-comment nil) | ||
| 506 | |||
| 503 | ;; Install `c-fill-paragraph' on `fill-paragraph-function' so that a | 507 | ;; Install `c-fill-paragraph' on `fill-paragraph-function' so that a |
| 504 | ;; direct call to `fill-paragraph' behaves better. This still | 508 | ;; direct call to `fill-paragraph' behaves better. This still |
| 505 | ;; doesn't work with filladapt but it's better than nothing. | 509 | ;; doesn't work with filladapt but it's better than nothing. |