diff options
| author | Alan Mackenzie | 2019-10-12 09:30:23 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2019-10-12 09:30:23 +0000 |
| commit | 55fdbec44316036b85d96a4d808a5f1f17276fc6 (patch) | |
| tree | 4551d60f6ef739e487719f87c58c8398fadc18b5 | |
| parent | 933c0bb96e7b157b551665dfd02141d1cd860771 (diff) | |
| download | emacs-55fdbec44316036b85d96a4d808a5f1f17276fc6.tar.gz emacs-55fdbec44316036b85d96a4d808a5f1f17276fc6.zip | |
CC-Mode: Remove unneeded backslashes from doc strings and regular expressions
Also make miscellaneous amendments.
* lisp/progmodes/cc-align.el, lisp/progmodes/cc-cmds.el
* lisp/progmodes/cc-defs.el, lisp/progmodes/cc-engine.el
* lisp/progmodes/cc-langs.el, lisp/progmodes/cc-vars.el: Remove lots of
unneeded backslashes.
* lisp/progmodes/cc-langs.el (c-string-innards-re-alist): Remove redundant
"\\|\r" from regular expression.
* lisp/progmodes/cc-mode.el (c-make-mode-syntax-table): Correct the name of
the hook normal-erase-is-backspace-MODE-hook from a non-existant hook name.
| -rw-r--r-- | lisp/progmodes/cc-align.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/cc-cmds.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/cc-defs.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 16 | ||||
| -rw-r--r-- | lisp/progmodes/cc-langs.el | 16 | ||||
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/cc-vars.el | 23 |
7 files changed, 37 insertions, 36 deletions
diff --git a/lisp/progmodes/cc-align.el b/lisp/progmodes/cc-align.el index 74548f643a7..82587b78658 100644 --- a/lisp/progmodes/cc-align.el +++ b/lisp/progmodes/cc-align.el | |||
| @@ -322,7 +322,7 @@ if ( x < 10 | |||
| 322 | 322 | ||
| 323 | Since this function doesn't do anything for lines without an infix | 323 | Since this function doesn't do anything for lines without an infix |
| 324 | operator you typically want to use it together with some other line-up | 324 | operator you typically want to use it together with some other line-up |
| 325 | settings, e.g. as follows \(the arglist-close setting is just a | 325 | settings, e.g. as follows (the arglist-close setting is just a |
| 326 | suggestion to get a consistent style): | 326 | suggestion to get a consistent style): |
| 327 | 327 | ||
| 328 | \(c-set-offset \\='arglist-cont \\='(c-lineup-arglist-operators 0)) | 328 | \(c-set-offset \\='arglist-cont \\='(c-lineup-arglist-operators 0)) |
| @@ -1246,7 +1246,7 @@ That is useful in a list expression to specify the default indentation | |||
| 1246 | on the top level. | 1246 | on the top level. |
| 1247 | 1247 | ||
| 1248 | If `c-syntactic-indentation-in-macros' is nil then this function keeps | 1248 | If `c-syntactic-indentation-in-macros' is nil then this function keeps |
| 1249 | the current indentation, except for empty lines \(ignoring the ending | 1249 | the current indentation, except for empty lines (ignoring the ending |
| 1250 | backslash) where it takes the indentation from the closest preceding | 1250 | backslash) where it takes the indentation from the closest preceding |
| 1251 | nonempty line in the macro. If there's no such line in the macro then | 1251 | nonempty line in the macro. If there's no such line in the macro then |
| 1252 | the indentation is taken from the construct preceding it, as described | 1252 | the indentation is taken from the construct preceding it, as described |
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index acf4c4ad158..0d9414e60fb 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el | |||
| @@ -61,7 +61,7 @@ syntactic information for the current line. Be silent about syntactic | |||
| 61 | errors if the optional argument QUIET is non-nil, even if | 61 | errors if the optional argument QUIET is non-nil, even if |
| 62 | `c-report-syntactic-errors' is non-nil. Normally the position of | 62 | `c-report-syntactic-errors' is non-nil. Normally the position of |
| 63 | point is used to decide where the old indentation is on a lines that | 63 | point is used to decide where the old indentation is on a lines that |
| 64 | is otherwise empty \(ignoring any line continuation backslash), but | 64 | is otherwise empty (ignoring any line continuation backslash), but |
| 65 | that's not done if IGNORE-POINT-POS is non-nil. Returns the amount of | 65 | that's not done if IGNORE-POINT-POS is non-nil. Returns the amount of |
| 66 | indentation change \(in columns)." | 66 | indentation change \(in columns)." |
| 67 | 67 | ||
| @@ -3257,7 +3257,7 @@ to call `c-scan-conditionals' directly instead." | |||
| 3257 | A prefix argument acts as a repeat count. With a negative argument, | 3257 | A prefix argument acts as a repeat count. With a negative argument, |
| 3258 | move backward across a preprocessor conditional. | 3258 | move backward across a preprocessor conditional. |
| 3259 | 3259 | ||
| 3260 | If there aren't enough conditionals after \(or before) point, an | 3260 | If there aren't enough conditionals after (or before) point, an |
| 3261 | error is signaled. | 3261 | error is signaled. |
| 3262 | 3262 | ||
| 3263 | \"#elif\" is treated like \"#else\" followed by \"#if\", except that | 3263 | \"#elif\" is treated like \"#else\" followed by \"#if\", except that |
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index 34f47debb16..e9a3e16db36 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el | |||
| @@ -566,11 +566,11 @@ known to be writable. That way, these text properties remain set | |||
| 566 | even if the user undoes the command which set them. | 566 | even if the user undoes the command which set them. |
| 567 | 567 | ||
| 568 | This macro should ALWAYS be placed around \"temporary\" internal buffer | 568 | This macro should ALWAYS be placed around \"temporary\" internal buffer |
| 569 | changes \(like adding a newline to calculate a text-property then | 569 | changes (like adding a newline to calculate a text-property then |
| 570 | deleting it again), so that the user never sees them on his | 570 | deleting it again), so that the user never sees them on his |
| 571 | `buffer-undo-list'. See also `c-tentative-buffer-changes'. | 571 | `buffer-undo-list'. See also `c-tentative-buffer-changes'. |
| 572 | 572 | ||
| 573 | However, any user-visible changes to the buffer \(like auto-newlines) | 573 | However, any user-visible changes to the buffer (like auto-newlines) |
| 574 | must not be within a `c-save-buffer-state', since the user then | 574 | must not be within a `c-save-buffer-state', since the user then |
| 575 | wouldn't be able to undo them. | 575 | wouldn't be able to undo them. |
| 576 | 576 | ||
| @@ -597,7 +597,7 @@ was in before BODY. Any changes are kept if the last form in BODY | |||
| 597 | returns non-nil. Otherwise it's undone using the undo facility, and | 597 | returns non-nil. Otherwise it's undone using the undo facility, and |
| 598 | various other buffer state that might be affected by the changes is | 598 | various other buffer state that might be affected by the changes is |
| 599 | restored. That includes the current buffer, point, mark, mark | 599 | restored. That includes the current buffer, point, mark, mark |
| 600 | activation \(similar to `save-excursion'), and the modified state. | 600 | activation (similar to `save-excursion'), and the modified state. |
| 601 | The state is also restored if BODY exits nonlocally. | 601 | The state is also restored if BODY exits nonlocally. |
| 602 | 602 | ||
| 603 | If BODY makes a change that unconditionally is undone then wrap this | 603 | If BODY makes a change that unconditionally is undone then wrap this |
| @@ -2360,7 +2360,7 @@ VAL is not evaluated right away but rather when the value is requested | |||
| 2360 | with `c-lang-const'. Thus it's possible to use `c-lang-const' inside | 2360 | with `c-lang-const'. Thus it's possible to use `c-lang-const' inside |
| 2361 | VAL to refer to language constants that haven't been defined yet. | 2361 | VAL to refer to language constants that haven't been defined yet. |
| 2362 | However, if the definition of a language constant is in another file | 2362 | However, if the definition of a language constant is in another file |
| 2363 | then that file must be loaded \(at compile time) before it's safe to | 2363 | then that file must be loaded (at compile time) before it's safe to |
| 2364 | reference the constant. | 2364 | reference the constant. |
| 2365 | 2365 | ||
| 2366 | The assignments in ARGS are processed in sequence like `setq', so | 2366 | The assignments in ARGS are processed in sequence like `setq', so |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 9ed4fe3d88c..8d92b26ebd0 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -788,7 +788,7 @@ IGNORE-LABELS is non-nil. (FIXME: Doesn't work if we stop at a known | |||
| 788 | statement start keyword.) Otherwise, each label is treated as a | 788 | statement start keyword.) Otherwise, each label is treated as a |
| 789 | separate statement. | 789 | separate statement. |
| 790 | 790 | ||
| 791 | Macros are ignored \(i.e. skipped over) unless point is within one, in | 791 | Macros are ignored (i.e. skipped over) unless point is within one, in |
| 792 | which case the content of the macro is treated as normal code. Aside | 792 | which case the content of the macro is treated as normal code. Aside |
| 793 | from any normal statement starts found in it, stop at the first token | 793 | from any normal statement starts found in it, stop at the first token |
| 794 | of the content in the macro, i.e. the expression of an \"#if\" or the | 794 | of the content in the macro, i.e. the expression of an \"#if\" or the |
| @@ -4706,7 +4706,7 @@ comment at the start of cc-engine.el for more info." | |||
| 4706 | "Return non-nil if the point is on or directly after an identifier. | 4706 | "Return non-nil if the point is on or directly after an identifier. |
| 4707 | Keywords are recognized and not considered identifiers. If an | 4707 | Keywords are recognized and not considered identifiers. If an |
| 4708 | identifier is detected, the returned value is its starting position. | 4708 | identifier is detected, the returned value is its starting position. |
| 4709 | If an identifier ends at the point and another begins at it \(can only | 4709 | If an identifier ends at the point and another begins at it (can only |
| 4710 | happen in Pike) then the point for the preceding one is returned. | 4710 | happen in Pike) then the point for the preceding one is returned. |
| 4711 | 4711 | ||
| 4712 | Note that this function might do hidden buffer changes. See the | 4712 | Note that this function might do hidden buffer changes. See the |
| @@ -4905,7 +4905,7 @@ over the final token in a buffer, up to EOB." | |||
| 4905 | (defun c-forward-token-2 (&optional count balanced limit) | 4905 | (defun c-forward-token-2 (&optional count balanced limit) |
| 4906 | "Move forward by tokens. | 4906 | "Move forward by tokens. |
| 4907 | A token is defined as all symbols and identifiers which aren't | 4907 | A token is defined as all symbols and identifiers which aren't |
| 4908 | syntactic whitespace \(note that multicharacter tokens like \"==\" are | 4908 | syntactic whitespace (note that multicharacter tokens like \"==\" are |
| 4909 | treated properly). Point is always either left at the beginning of a | 4909 | treated properly). Point is always either left at the beginning of a |
| 4910 | token or not moved at all. COUNT specifies the number of tokens to | 4910 | token or not moved at all. COUNT specifies the number of tokens to |
| 4911 | move; a negative COUNT moves in the opposite direction. A COUNT of 0 | 4911 | move; a negative COUNT moves in the opposite direction. A COUNT of 0 |
| @@ -4917,11 +4917,11 @@ LIMIT sets the limit for the movement and defaults to the point limit. | |||
| 4917 | The case when LIMIT is set in the middle of a token, comment or macro | 4917 | The case when LIMIT is set in the middle of a token, comment or macro |
| 4918 | is handled correctly, i.e. the point won't be left there. | 4918 | is handled correctly, i.e. the point won't be left there. |
| 4919 | 4919 | ||
| 4920 | Return the number of tokens left to move \(positive or negative). If | 4920 | Return the number of tokens left to move (positive or negative). If |
| 4921 | BALANCED is true, a move over a balanced paren counts as one. Note | 4921 | BALANCED is true, a move over a balanced paren counts as one. Note |
| 4922 | that if COUNT is 0 and no appropriate token beginning is found, 1 will | 4922 | that if COUNT is 0 and no appropriate token beginning is found, 1 will |
| 4923 | be returned. Thus, a return value of 0 guarantees that point is at | 4923 | be returned. Thus, a return value of 0 guarantees that point is at |
| 4924 | the requested position and a return value less \(without signs) than | 4924 | the requested position and a return value less (without signs) than |
| 4925 | COUNT guarantees that point is at the beginning of some token. | 4925 | COUNT guarantees that point is at the beginning of some token. |
| 4926 | 4926 | ||
| 4927 | Note that this function might do hidden buffer changes. See the | 4927 | Note that this function might do hidden buffer changes. See the |
| @@ -5065,7 +5065,7 @@ inside a literal there. | |||
| 5065 | If PAREN-LEVEL is non-nil, an additional restriction is added to | 5065 | If PAREN-LEVEL is non-nil, an additional restriction is added to |
| 5066 | ignore matches in nested paren sexps. The search will also not go | 5066 | ignore matches in nested paren sexps. The search will also not go |
| 5067 | outside the current list sexp, which has the effect that if the point | 5067 | outside the current list sexp, which has the effect that if the point |
| 5068 | should be moved to BOUND when no match is found \(i.e. NOERROR is | 5068 | should be moved to BOUND when no match is found (i.e. NOERROR is |
| 5069 | neither nil nor t), then it will be at the closing paren if the end of | 5069 | neither nil nor t), then it will be at the closing paren if the end of |
| 5070 | the current list sexp is encountered first. | 5070 | the current list sexp is encountered first. |
| 5071 | 5071 | ||
| @@ -5090,7 +5090,7 @@ hand not safe to assume that the \"look behind\" subexpression never | |||
| 5090 | matches syntactic whitespace. | 5090 | matches syntactic whitespace. |
| 5091 | 5091 | ||
| 5092 | Bug: Unbalanced parens inside cpp directives are currently not handled | 5092 | Bug: Unbalanced parens inside cpp directives are currently not handled |
| 5093 | correctly \(i.e. they don't get ignored as they should) when | 5093 | correctly (i.e. they don't get ignored as they should) when |
| 5094 | PAREN-LEVEL is set. | 5094 | PAREN-LEVEL is set. |
| 5095 | 5095 | ||
| 5096 | Note that this function might do hidden buffer changes. See the | 5096 | Note that this function might do hidden buffer changes. See the |
| @@ -8965,7 +8965,7 @@ point unchanged and return nil." | |||
| 8965 | 8965 | ||
| 8966 | ;; Search syntactically to the end of the declarator (";", | 8966 | ;; Search syntactically to the end of the declarator (";", |
| 8967 | ;; ",", a closing paren, eob etc) or to the beginning of an | 8967 | ;; ",", a closing paren, eob etc) or to the beginning of an |
| 8968 | ;; initializer or function prototype ("=" or "\\s\("). | 8968 | ;; initializer or function prototype ("=" or "\\s("). |
| 8969 | ;; Note that square brackets are now not also treated as | 8969 | ;; Note that square brackets are now not also treated as |
| 8970 | ;; initializers, since this broke when there were also | 8970 | ;; initializers, since this broke when there were also |
| 8971 | ;; initializing brace lists. | 8971 | ;; initializing brace lists. |
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index a6fdc3ec798..44d0d49df5b 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el | |||
| @@ -545,7 +545,7 @@ buffer local variables c-new-BEG and c-new-END. | |||
| 545 | The functions are called even when font locking is disabled. | 545 | The functions are called even when font locking is disabled. |
| 546 | 546 | ||
| 547 | When the mode is initialized, these functions are called with | 547 | When the mode is initialized, these functions are called with |
| 548 | parameters \(point-min), \(point-max) and <buffer size>.") | 548 | parameters (point-min), (point-max) and <buffer size>.") |
| 549 | 549 | ||
| 550 | (c-lang-defconst c-before-context-fontification-functions | 550 | (c-lang-defconst c-before-context-fontification-functions |
| 551 | t 'c-context-expand-fl-region | 551 | t 'c-context-expand-fl-region |
| @@ -878,7 +878,7 @@ literal are multiline." | |||
| 878 | t (mapcar (lambda (delim) | 878 | t (mapcar (lambda (delim) |
| 879 | (cons | 879 | (cons |
| 880 | delim | 880 | delim |
| 881 | (concat "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\\\n\r" | 881 | (concat "\\(\\\\\\(.\\|\n\\)\\|[^\\\n\r" |
| 882 | (string delim) | 882 | (string delim) |
| 883 | "]\\)*"))) | 883 | "]\\)*"))) |
| 884 | (and | 884 | (and |
| @@ -2338,7 +2338,7 @@ will be handled." | |||
| 2338 | (c-lang-defvar c-typedef-decl-key (c-lang-const c-typedef-decl-key)) | 2338 | (c-lang-defvar c-typedef-decl-key (c-lang-const c-typedef-decl-key)) |
| 2339 | 2339 | ||
| 2340 | (c-lang-defconst c-typeless-decl-kwds | 2340 | (c-lang-defconst c-typeless-decl-kwds |
| 2341 | "Keywords introducing declarations where the \(first) identifier | 2341 | "Keywords introducing declarations where the (first) identifier |
| 2342 | \(declarator) follows directly after the keyword, without any type. | 2342 | \(declarator) follows directly after the keyword, without any type. |
| 2343 | 2343 | ||
| 2344 | If any of these also are on `c-type-list-kwds', `c-ref-list-kwds', | 2344 | If any of these also are on `c-type-list-kwds', `c-ref-list-kwds', |
| @@ -2442,7 +2442,7 @@ Note that unrecognized plain symbols are skipped anyway if they occur | |||
| 2442 | before the type, so such things are not necessary to mention here. | 2442 | before the type, so such things are not necessary to mention here. |
| 2443 | Mentioning them here is necessary only if they can occur in other | 2443 | Mentioning them here is necessary only if they can occur in other |
| 2444 | places, or if they are followed by a construct that must be skipped | 2444 | places, or if they are followed by a construct that must be skipped |
| 2445 | over \(like the parens in the \"__attribute__\" and \"__declspec\" | 2445 | over (like the parens in the \"__attribute__\" and \"__declspec\" |
| 2446 | examples above). In the last case, they alse need to be present on | 2446 | examples above). In the last case, they alse need to be present on |
| 2447 | one of `c-type-list-kwds', `c-ref-list-kwds', | 2447 | one of `c-type-list-kwds', `c-ref-list-kwds', |
| 2448 | `c-colon-type-list-kwds', `c-paren-nontype-kwds', `c-paren-type-kwds', | 2448 | `c-colon-type-list-kwds', `c-paren-nontype-kwds', `c-paren-type-kwds', |
| @@ -2574,7 +2574,7 @@ The keywords on list are assumed to also be present on one of the | |||
| 2574 | 2574 | ||
| 2575 | (c-lang-defconst c-postfix-decl-spec-kwds | 2575 | (c-lang-defconst c-postfix-decl-spec-kwds |
| 2576 | "Keywords introducing extra declaration specifiers in the region | 2576 | "Keywords introducing extra declaration specifiers in the region |
| 2577 | between the header and the body \(i.e. the \"K&R-region\") in | 2577 | between the header and the body (i.e. the \"K&R-region\") in |
| 2578 | declarations." | 2578 | declarations." |
| 2579 | t nil | 2579 | t nil |
| 2580 | java '("extends" "implements" "throws") | 2580 | java '("extends" "implements" "throws") |
| @@ -2926,7 +2926,7 @@ expressions." | |||
| 2926 | 2926 | ||
| 2927 | (c-lang-defconst c-inexpr-block-kwds | 2927 | (c-lang-defconst c-inexpr-block-kwds |
| 2928 | "Keywords that start constructs followed by statement blocks which can | 2928 | "Keywords that start constructs followed by statement blocks which can |
| 2929 | be used in expressions \(the gcc extension for this in C and C++ is | 2929 | be used in expressions (the gcc extension for this in C and C++ is |
| 2930 | handled separately by `c-recognize-paren-inexpr-blocks')." | 2930 | handled separately by `c-recognize-paren-inexpr-blocks')." |
| 2931 | t nil | 2931 | t nil |
| 2932 | pike '("catch" "gauge")) | 2932 | pike '("catch" "gauge")) |
| @@ -3403,7 +3403,7 @@ possible for good performance." | |||
| 3403 | identifier in a declaration, e.g. the \"*\" in \"char *argv\". This | 3403 | identifier in a declaration, e.g. the \"*\" in \"char *argv\". This |
| 3404 | regexp should match \"(\" if parentheses are valid in declarators. | 3404 | regexp should match \"(\" if parentheses are valid in declarators. |
| 3405 | The end of the first submatch is taken as the end of the operator. | 3405 | The end of the first submatch is taken as the end of the operator. |
| 3406 | Identifier syntax is in effect when this is matched \(see | 3406 | Identifier syntax is in effect when this is matched (see |
| 3407 | `c-identifier-syntax-table')." | 3407 | `c-identifier-syntax-table')." |
| 3408 | t (if (c-lang-const c-type-modifier-kwds) | 3408 | t (if (c-lang-const c-type-modifier-kwds) |
| 3409 | (concat (regexp-opt (c-lang-const c-type-modifier-kwds) t) "\\>") | 3409 | (concat (regexp-opt (c-lang-const c-type-modifier-kwds) t) "\\>") |
| @@ -3444,7 +3444,7 @@ Identifier syntax is in effect when this is matched \(see | |||
| 3444 | that might precede the identifier in a declaration, e.g. the | 3444 | that might precede the identifier in a declaration, e.g. the |
| 3445 | \"*\" in \"char *argv\". The end of the first submatch is taken | 3445 | \"*\" in \"char *argv\". The end of the first submatch is taken |
| 3446 | as the end of the operator. Identifier syntax is in effect when | 3446 | as the end of the operator. Identifier syntax is in effect when |
| 3447 | this is matched \(see `c-identifier-syntax-table')." | 3447 | this is matched (see `c-identifier-syntax-table')." |
| 3448 | t ;; Default to a regexp that never matches. | 3448 | t ;; Default to a regexp that never matches. |
| 3449 | regexp-unmatchable | 3449 | regexp-unmatchable |
| 3450 | ;; Check that there's no "=" afterwards to avoid matching tokens | 3450 | ;; Check that there's no "=" afterwards to avoid matching tokens |
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 631787d73f1..6bdfb170f1b 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -377,7 +377,7 @@ control). See \"cc-mode.el\" for more info." | |||
| 377 | ;; to special combinations like C-c C-<delete>, so we have to hook | 377 | ;; to special combinations like C-c C-<delete>, so we have to hook |
| 378 | ;; into the `normal-erase-is-backspace' system to bind it directly | 378 | ;; into the `normal-erase-is-backspace' system to bind it directly |
| 379 | ;; as appropriate. | 379 | ;; as appropriate. |
| 380 | (add-hook 'normal-erase-is-backspace-hook 'c-bind-special-erase-keys) | 380 | (add-hook 'normal-erase-is-backspace-mode-hook 'c-bind-special-erase-keys) |
| 381 | (c-bind-special-erase-keys)) | 381 | (c-bind-special-erase-keys)) |
| 382 | 382 | ||
| 383 | (when (fboundp 'delete-forward-p) | 383 | (when (fboundp 'delete-forward-p) |
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el index 54d634780ee..60ad42f24f4 100644 --- a/lisp/progmodes/cc-vars.el +++ b/lisp/progmodes/cc-vars.el | |||
| @@ -289,9 +289,9 @@ nil." | |||
| 289 | "Controls the operation of the TAB key. | 289 | "Controls the operation of the TAB key. |
| 290 | If t, hitting TAB always just indents the current line. If nil, hitting | 290 | If t, hitting TAB always just indents the current line. If nil, hitting |
| 291 | TAB indents the current line if point is at the left margin or in the | 291 | TAB indents the current line if point is at the left margin or in the |
| 292 | line's indentation, otherwise it inserts a `real' tab character \(see | 292 | line's indentation, otherwise it inserts a `real' tab character (see |
| 293 | note). If some other value \(not nil or t), then tab is inserted only | 293 | note). If some other value (not nil or t), then tab is inserted only |
| 294 | within literals \(comments and strings), but the line is always | 294 | within literals (comments and strings), but the line is always |
| 295 | reindented. | 295 | reindented. |
| 296 | 296 | ||
| 297 | Note: The value of `indent-tabs-mode' will determine whether a real | 297 | Note: The value of `indent-tabs-mode' will determine whether a real |
| @@ -345,10 +345,11 @@ of the macro content. The default context inside the macro is the | |||
| 345 | same as the top level, so if it contains \"bare\" statements they | 345 | same as the top level, so if it contains \"bare\" statements they |
| 346 | might be indented wrongly, although there are special cases that | 346 | might be indented wrongly, although there are special cases that |
| 347 | handle this in most cases. If this problem occurs, it's usually | 347 | handle this in most cases. If this problem occurs, it's usually |
| 348 | countered easily by surrounding the statements by a block \(or even | 348 | countered easily by surrounding the statements by a block (or even |
| 349 | better with the \"do { ... } while \(0)\" trick)." | 349 | better with the \"do { ... } while (0)\" trick)." |
| 350 | :type 'boolean | 350 | :type 'boolean |
| 351 | :group 'c) | 351 | :group 'c) |
| 352 | |||
| 352 | (put 'c-syntactic-indentation-in-macros 'safe-local-variable 'booleanp) | 353 | (put 'c-syntactic-indentation-in-macros 'safe-local-variable 'booleanp) |
| 353 | 354 | ||
| 354 | (defcustom c-defun-tactic 'go-outward | 355 | (defcustom c-defun-tactic 'go-outward |
| @@ -1293,7 +1294,7 @@ OFFSET can specify an offset in several different ways: | |||
| 1293 | this variable are normally taken from the style system in CC Mode | 1294 | this variable are normally taken from the style system in CC Mode |
| 1294 | \(see `c-default-style' and `c-style-alist'). However, any offsets | 1295 | \(see `c-default-style' and `c-style-alist'). However, any offsets |
| 1295 | put explicitly on this list will override the style system when a CC | 1296 | put explicitly on this list will override the style system when a CC |
| 1296 | Mode buffer is initialized \(there is a variable | 1297 | Mode buffer is initialized (there is a variable |
| 1297 | `c-old-style-variable-behavior' that changes this, though). | 1298 | `c-old-style-variable-behavior' that changes this, though). |
| 1298 | 1299 | ||
| 1299 | Here is the current list of valid syntactic element symbols: | 1300 | Here is the current list of valid syntactic element symbols: |
| @@ -1670,7 +1671,7 @@ this implicitly by reinitializing C/C++/Objc Mode on any buffer)." | |||
| 1670 | (make-variable-buffer-local 'c-noise-macro-names) | 1671 | (make-variable-buffer-local 'c-noise-macro-names) |
| 1671 | 1672 | ||
| 1672 | (defcustom c-noise-macro-with-parens-names nil | 1673 | (defcustom c-noise-macro-with-parens-names nil |
| 1673 | "A list of names of macros \(or compiler extensions like \"__attribute__\") | 1674 | "A list of names of macros (or compiler extensions like \"__attribute__\") |
| 1674 | which optionally have arguments in parentheses, and which expand to nothing. | 1675 | which optionally have arguments in parentheses, and which expand to nothing. |
| 1675 | These are recognized by CC Mode only in declarations." | 1676 | These are recognized by CC Mode only in declarations." |
| 1676 | :version "26.1" | 1677 | :version "26.1" |
| @@ -1718,7 +1719,7 @@ Alternatively it can be a string, a regular expression which | |||
| 1718 | matches all such symbols. | 1719 | matches all such symbols. |
| 1719 | 1720 | ||
| 1720 | The \"symbols\" must be syntactically valid identifiers in the | 1721 | The \"symbols\" must be syntactically valid identifiers in the |
| 1721 | target language \(C, C++, Objective C), or \(as the case may be) | 1722 | target language (C, C++, Objective C), or (as the case may be) |
| 1722 | the regular expression must match only valid identifiers. | 1723 | the regular expression must match only valid identifiers. |
| 1723 | 1724 | ||
| 1724 | If you change this variable's value, call the function | 1725 | If you change this variable's value, call the function |
| @@ -1788,9 +1789,9 @@ as designated in the variable `c-file-style'.") | |||
| 1788 | It is a list with one element for each syntactic symbol pertinent to the | 1789 | It is a list with one element for each syntactic symbol pertinent to the |
| 1789 | line, for example \"((defun-block-intro 1) (comment-intro))\". | 1790 | line, for example \"((defun-block-intro 1) (comment-intro))\". |
| 1790 | 1791 | ||
| 1791 | It is dynamically bound when calling \(i) a brace hanging \"action | 1792 | It is dynamically bound when calling (i) a brace hanging \"action |
| 1792 | function\"; \(ii) a semicolon/comma hanging \"criteria function\"; \(iii) a | 1793 | function\"; (ii) a semicolon/comma hanging \"criteria function\"; (iii) a |
| 1793 | \"line-up function\"; \(iv) a c-special-indent-hook function. It is also | 1794 | \"line-up function\"; (iv) a c-special-indent-hook function. It is also |
| 1794 | used internally by CC Mode. | 1795 | used internally by CC Mode. |
| 1795 | 1796 | ||
| 1796 | c-syntactic-context is always bound dynamically. It must NEVER be set | 1797 | c-syntactic-context is always bound dynamically. It must NEVER be set |