From: Martin Stjernholm Date: Wed, 24 Sep 2003 13:56:27 +0000 (+0000) Subject: (c-setup-paragraph-variables): Made it interactive. X-Git-Tag: ttn-vms-21-2-B4~8747 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cfb966f42a44d51c7d3dfc2b94192e4639d4dc94;p=emacs.git (c-setup-paragraph-variables): Made it interactive. --- diff --git a/lisp/progmodes/cc-styles.el b/lisp/progmodes/cc-styles.el index 498ccc4d782..13ffd310fce 100644 --- a/lisp/progmodes/cc-styles.el +++ b/lisp/progmodes/cc-styles.el @@ -484,13 +484,17 @@ variables." ;; ;; 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 @@ variables." (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)