diff options
author | Alan Mackenzie <acm@muc.de> | 2016-06-29 20:17:39 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2016-06-29 20:17:39 +0000 |
commit | 681d3f1f582d9b549f41ef1eacff42abb98f878d (patch) | |
tree | e67927c1fd6a97f2d7e245fe6097049c916c2fa4 /lisp/progmodes/cc-vars.el | |
parent | 4a2a1eba09e5bbc37b853733708feae17f1425f5 (diff) | |
download | emacs-681d3f1f582d9b549f41ef1eacff42abb98f878d.tar.gz |
Fix C-M-a in a C function finding the start of a macro preceding it.
Also amend some pertinent documentation. This fixes bug #23818.
* lisp/progmodes/cc-engine.el (c-beginning-of-decl-1): Also check for a
virtual semicolon at a place where we check for other types of statement ends.
* lisp/progmodes/cc-vars.el (c-macro-nacmes-with-semicolon): Remove from the
doc string the bit saying that the variable is a prototype and liable to
change.
* doc/misc/cc-mode.texi (Macros with ;): Enhance, stating that configuring
macros with semicolon can prevent C-M-a missing the beginning of defun.
Diffstat (limited to 'lisp/progmodes/cc-vars.el')
-rw-r--r-- | lisp/progmodes/cc-vars.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el index f03aec2804b..7a6f4baaa73 100644 --- a/lisp/progmodes/cc-vars.el +++ b/lisp/progmodes/cc-vars.el @@ -1702,10 +1702,7 @@ the regular expression must match only valid identifiers. If you change this variable's value, call the function `c-make-macros-with-semi-re' to set the necessary internal -variables. - -Note that currently \(2008-11-04) this variable is a prototype, -and is likely to disappear or change its form soon.") +variables.") (make-variable-buffer-local 'c-macro-names-with-semicolon) (put 'c-macro-names-with-semicolon 'safe-local-variable #'c-string-or-string-list-p) |