aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-02-02 09:48:01 +0000
committerRichard M. Stallman1995-02-02 09:48:01 +0000
commitfcf9745f68a7c86ec490f84435bc984f683e2747 (patch)
tree622dbcaab2508e7eb409eaca6a7f44b02c78f01d
parent2b4483bbdcf70f223b7faed9f5d441315e89dd4d (diff)
downloademacs-fcf9745f68a7c86ec490f84435bc984f683e2747.tar.gz
emacs-fcf9745f68a7c86ec490f84435bc984f683e2747.zip
(c-mode-map): No binding for c-fill-paragraph
(c-fill-paragraph): Return t. (c-mode): Put c-fill-paragraph in fill-paragraph-function.
-rw-r--r--lisp/progmodes/c-mode.el6
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 @@
45(define-key c-mode-map "\e\C-q" 'indent-c-exp) 45(define-key c-mode-map "\e\C-q" 'indent-c-exp)
46(define-key c-mode-map "\ea" 'c-beginning-of-statement) 46(define-key c-mode-map "\ea" 'c-beginning-of-statement)
47(define-key c-mode-map "\ee" 'c-end-of-statement) 47(define-key c-mode-map "\ee" 'c-end-of-statement)
48(define-key c-mode-map "\eq" 'c-fill-paragraph)
49(define-key c-mode-map "\C-c\C-n" 'c-forward-conditional) 48(define-key c-mode-map "\C-c\C-n" 'c-forward-conditional)
50(define-key c-mode-map "\C-c\C-p" 'c-backward-conditional) 49(define-key c-mode-map "\C-c\C-p" 'c-backward-conditional)
51(define-key c-mode-map "\C-c\C-u" 'c-up-conditional) 50(define-key c-mode-map "\C-c\C-u" 'c-up-conditional)
@@ -226,6 +225,8 @@ if that value is non-nil."
226 (setq paragraph-separate paragraph-start) 225 (setq paragraph-separate paragraph-start)
227 (make-local-variable 'paragraph-ignore-fill-prefix) 226 (make-local-variable 'paragraph-ignore-fill-prefix)
228 (setq paragraph-ignore-fill-prefix t) 227 (setq paragraph-ignore-fill-prefix t)
228 (make-local-variable 'fill-paragraph-function)
229 (setq fill-paragraph-function 'c-fill-paragraph)
229 (make-local-variable 'indent-line-function) 230 (make-local-variable 'indent-line-function)
230 (setq indent-line-function 'c-indent-line) 231 (setq indent-line-function 'c-indent-line)
231 (make-local-variable 'indent-region-function) 232 (make-local-variable 'indent-region-function)
@@ -476,7 +477,8 @@ preserving the comment indentation or line-starting decorations."
476 (forward-line -1) 477 (forward-line -1)
477 (fill-region-as-paragraph (point) (point-max))))))) 478 (fill-region-as-paragraph (point) (point-max)))))))
478 ;; Outside of comments: do ordinary filling. 479 ;; Outside of comments: do ordinary filling.
479 (fill-paragraph arg))))) 480 (fill-paragraph arg)))
481 t))
480 482
481(defun electric-c-brace (arg) 483(defun electric-c-brace (arg)
482 "Insert character and correct line's indentation." 484 "Insert character and correct line's indentation."