aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Stjernholm2003-09-24 13:56:27 +0000
committerMartin Stjernholm2003-09-24 13:56:27 +0000
commitcfb966f42a44d51c7d3dfc2b94192e4639d4dc94 (patch)
tree81156521a27f8a380b25c0322c099ce6d5e28693
parentfa14078b4f2883940219c59017e0aa8187bf0d53 (diff)
downloademacs-cfb966f42a44d51c7d3dfc2b94192e4639d4dc94.tar.gz
emacs-cfb966f42a44d51c7d3dfc2b94192e4639d4dc94.zip
(c-setup-paragraph-variables): Made it interactive.
-rw-r--r--lisp/progmodes/cc-styles.el5
1 files changed, 5 insertions, 0 deletions
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."
484 ;; 484 ;;
485 ;; This function does not do any hidden buffer changes. 485 ;; This function does not do any hidden buffer changes.
486 486
487 (interactive)
488
487 (setq c-current-comment-prefix 489 (setq c-current-comment-prefix
488 (if (listp c-comment-prefix-regexp) 490 (if (listp c-comment-prefix-regexp)
489 (cdr-safe (or (assoc major-mode c-comment-prefix-regexp) 491 (cdr-safe (or (assoc major-mode c-comment-prefix-regexp)
490 (assoc 'other c-comment-prefix-regexp))) 492 (assoc 'other c-comment-prefix-regexp)))
491 c-comment-prefix-regexp)) 493 c-comment-prefix-regexp))
494
492 (let ((comment-line-prefix 495 (let ((comment-line-prefix
493 (concat "[ \t]*\\(" c-current-comment-prefix "\\)[ \t]*"))) 496 (concat "[ \t]*\\(" c-current-comment-prefix "\\)[ \t]*")))
497
494 (setq paragraph-start (concat comment-line-prefix 498 (setq paragraph-start (concat comment-line-prefix
495 c-paragraph-start 499 c-paragraph-start
496 "\\|" 500 "\\|"
@@ -508,6 +512,7 @@ variables."
508 (default-value 'adaptive-fill-regexp) 512 (default-value 'adaptive-fill-regexp)
509 "\\)") 513 "\\)")
510 ""))) 514 "")))
515
511 (when (boundp 'adaptive-fill-first-line-regexp) 516 (when (boundp 'adaptive-fill-first-line-regexp)
512 ;; XEmacs (20.x) adaptive fill mode doesn't have this. 517 ;; XEmacs (20.x) adaptive fill mode doesn't have this.
513 (make-local-variable 'adaptive-fill-first-line-regexp) 518 (make-local-variable 'adaptive-fill-first-line-regexp)