Mercurial > emacs
changeset 52608:fae5ff03687a
(c-setup-paragraph-variables): Made it interactive.
author | Martin Stjernholm <mast@lysator.liu.se> |
---|---|
date | Wed, 24 Sep 2003 13:56:27 +0000 |
parents | 28b12b0193f6 |
children | ce6cc36ebb7c |
files | lisp/progmodes/cc-styles.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/cc-styles.el Wed Sep 24 13:56:09 2003 +0000 +++ b/lisp/progmodes/cc-styles.el Wed Sep 24 13:56:27 2003 +0000 @@ -484,13 +484,17 @@ ;; ;; This function does not do any hidden buffer changes. + (interactive) + (setq c-current-comment-prefix (if (listp c-comment-prefix-regexp) (cdr-safe (or (assoc major-mode c-comment-prefix-regexp) (assoc 'other c-comment-prefix-regexp))) c-comment-prefix-regexp)) + (let ((comment-line-prefix (concat "[ \t]*\\(" c-current-comment-prefix "\\)[ \t]*"))) + (setq paragraph-start (concat comment-line-prefix c-paragraph-start "\\|" @@ -508,6 +512,7 @@ (default-value 'adaptive-fill-regexp) "\\)") ""))) + (when (boundp 'adaptive-fill-first-line-regexp) ;; XEmacs (20.x) adaptive fill mode doesn't have this. (make-local-variable 'adaptive-fill-first-line-regexp)