diff options
| author | Martin Stjernholm | 2003-09-24 13:56:48 +0000 |
|---|---|---|
| committer | Martin Stjernholm | 2003-09-24 13:56:48 +0000 |
| commit | 0923382c347d2f4fed2d97a4ae7b092416f4b263 (patch) | |
| tree | 3a419f3c346b207687cd7882bac80778a3facb4f /lisp | |
| parent | cfb966f42a44d51c7d3dfc2b94192e4639d4dc94 (diff) | |
| download | emacs-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.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/cc-vars.el | 12 |
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 | |||
| 493 | handle the paragraph filling. That's done at mode initialization or | 493 | handle the paragraph filling. That's done at mode initialization or |
| 494 | when you switch to a style which sets this variable. Thus, if you | 494 | when you switch to a style which sets this variable. Thus, if you |
| 495 | change it in some other way, e.g. interactively in a CC Mode buffer, | 495 | change it in some other way, e.g. interactively in a CC Mode buffer, |
| 496 | you will need to do \\[c-mode] (or whatever mode you're currently | 496 | you will need to do \\[c-setup-paragraph-variables] afterwards so that |
| 497 | using) to reinitialize. | 497 | the other variables are updated with the new value. |
| 498 | 498 | ||
| 499 | Note also that when CC Mode starts up, the other variables are | 499 | Note also that when CC Mode starts up, all variables are initialized |
| 500 | modified before the mode hooks are run. If you change this variable | 500 | before the mode hooks are run. It's therefore necessary to make a |
| 501 | in a mode hook, you can call `c-setup-paragraph-variables' afterwards | 501 | call to `c-setup-paragraph-variables' explicitly if you change this |
| 502 | to redo it." | 502 | variable 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 |