aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Stjernholm2003-09-24 13:56:48 +0000
committerMartin Stjernholm2003-09-24 13:56:48 +0000
commit0923382c347d2f4fed2d97a4ae7b092416f4b263 (patch)
tree3a419f3c346b207687cd7882bac80778a3facb4f
parentcfb966f42a44d51c7d3dfc2b94192e4639d4dc94 (diff)
downloademacs-0923382c347d2f4fed2d97a4ae7b092416f4b263.tar.gz
emacs-0923382c347d2f4fed2d97a4ae7b092416f4b263.zip
(c-comment-prefix-regexp): Document that `c-setup-paragraph-variables'
has to be used when this variable is changed; it doesn't work to reinitialize the mode since that typically clobbers the variable.
-rw-r--r--lisp/progmodes/cc-vars.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index 5ea6ad89a70..0485bf3332f 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -493,13 +493,13 @@ Note that CC Mode uses this variable to set many other variables that
493handle the paragraph filling. That's done at mode initialization or 493handle the paragraph filling. That's done at mode initialization or
494when you switch to a style which sets this variable. Thus, if you 494when you switch to a style which sets this variable. Thus, if you
495change it in some other way, e.g. interactively in a CC Mode buffer, 495change it in some other way, e.g. interactively in a CC Mode buffer,
496you will need to do \\[c-mode] (or whatever mode you're currently 496you will need to do \\[c-setup-paragraph-variables] afterwards so that
497using) to reinitialize. 497the other variables are updated with the new value.
498 498
499Note also that when CC Mode starts up, the other variables are 499Note also that when CC Mode starts up, all variables are initialized
500modified before the mode hooks are run. If you change this variable 500before the mode hooks are run. It's therefore necessary to make a
501in a mode hook, you can call `c-setup-paragraph-variables' afterwards 501call to `c-setup-paragraph-variables' explicitly if you change this
502to redo it." 502variable in a mode hook."
503 :type '(radio 503 :type '(radio
504 (regexp :tag "Regexp for all modes") 504 (regexp :tag "Regexp for all modes")
505 (list 505 (list