diff options
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. |