diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-02-02 09:48:01 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-02-02 09:48:01 +0000 |
commit | 25b5a97738f8945d3c68bbe6117bfd8b44b59db8 (patch) | |
tree | 00c13a88e89bd5570f2410f6f0eaef5f191bd24a /lisp/progmodes/c-mode.el | |
parent | fe37bda9b6b591e2d46fb747ea5cb30b2bc2ec1f (diff) | |
download | emacs-25b5a97738f8945d3c68bbe6117bfd8b44b59db8.tar.gz |
(c-mode-map): No binding for c-fill-paragraph
(c-fill-paragraph): Return t.
(c-mode): Put c-fill-paragraph in fill-paragraph-function.
Diffstat (limited to 'lisp/progmodes/c-mode.el')
-rw-r--r-- | lisp/progmodes/c-mode.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index cb993c5c462..8f2a61a0362 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el @@ -45,7 +45,6 @@ (define-key c-mode-map "\e\C-q" 'indent-c-exp) (define-key c-mode-map "\ea" 'c-beginning-of-statement) (define-key c-mode-map "\ee" 'c-end-of-statement) -(define-key c-mode-map "\eq" 'c-fill-paragraph) (define-key c-mode-map "\C-c\C-n" 'c-forward-conditional) (define-key c-mode-map "\C-c\C-p" 'c-backward-conditional) (define-key c-mode-map "\C-c\C-u" 'c-up-conditional) @@ -226,6 +225,8 @@ if that value is non-nil." (setq paragraph-separate paragraph-start) (make-local-variable 'paragraph-ignore-fill-prefix) (setq paragraph-ignore-fill-prefix t) + (make-local-variable 'fill-paragraph-function) + (setq fill-paragraph-function 'c-fill-paragraph) (make-local-variable 'indent-line-function) (setq indent-line-function 'c-indent-line) (make-local-variable 'indent-region-function) @@ -476,7 +477,8 @@ preserving the comment indentation or line-starting decorations." (forward-line -1) (fill-region-as-paragraph (point) (point-max))))))) ;; Outside of comments: do ordinary filling. - (fill-paragraph arg))))) + (fill-paragraph arg))) + t)) (defun electric-c-brace (arg) "Insert character and correct line's indentation." |