aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Stjernholm2003-02-09 01:46:04 +0000
committerMartin Stjernholm2003-02-09 01:46:04 +0000
commitfd8771f59fabfa7c5d76c2d9fc8916ec721ba071 (patch)
treee93a4d3ccfd9aeba2522f6eef11bf14690b1013e
parent0dfd93c05d8e9557971b7467e75a468ad25d0999 (diff)
downloademacs-fd8771f59fabfa7c5d76c2d9fc8916ec721ba071.tar.gz
emacs-fd8771f59fabfa7c5d76c2d9fc8916ec721ba071.zip
(c-basic-common-init): Install `c-fill-paragraph' on
`fill-paragraph-function'. Although it's not the normal way to call it in a CC Mode buffer it makes a direct call to `fill-paragraph' work better.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/progmodes/cc-mode.el6
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d2511614896..888157367c6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12003-02-09 Martin Stjernholm <mast@lysator.liu.se>
2
3 * progmodes/cc-mode.el (c-basic-common-init): Install
4 `c-fill-paragraph' on `fill-paragraph-function'. Although
5 it's not the normal way to call it in a CC Mode buffer it
6 makes a direct call to `fill-paragraph' work better.
7
12003-02-08 Kim F. Storm <storm@cua.dk> 82003-02-08 Kim F. Storm <storm@cua.dk>
2 9
3 * printing.el (pr-get-symbol): Define during compile. 10 * printing.el (pr-get-symbol): Define during compile.
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 2073a4a3371..94eb6fcaea4 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -335,6 +335,12 @@
335 comment-start-skip "/\\*+ *\\|//+ *" 335 comment-start-skip "/\\*+ *\\|//+ *"
336 comment-multi-line t) 336 comment-multi-line t)
337 337
338 ;; Install `c-fill-paragraph' on `fill-paragraph-function' so that a
339 ;; direct call to `fill-paragraph' behaves better. This still
340 ;; doesn't work with filladapt but it's better than nothing.
341 (make-local-variable 'fill-paragraph-function)
342 (setq fill-paragraph-function 'c-fill-paragraph)
343
338 ;; Set `require-final-newline' only if we should. 344 ;; Set `require-final-newline' only if we should.
339 (let ((rfn (assq mode c-require-final-newline))) 345 (let ((rfn (assq mode c-require-final-newline)))
340 (when rfn 346 (when rfn