]> git.eshelyaron.com Git - emacs.git/commit
Fix C-M-a in a C function finding the start of a macro preceding it.
authorAlan Mackenzie <acm@muc.de>
Wed, 29 Jun 2016 20:17:39 +0000 (20:17 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 29 Jun 2016 20:17:39 +0000 (20:17 +0000)
commit681d3f1f582d9b549f41ef1eacff42abb98f878d
treee67927c1fd6a97f2d7e245fe6097049c916c2fa4
parent4a2a1eba09e5bbc37b853733708feae17f1425f5
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.
doc/misc/cc-mode.texi
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-vars.el