diff options
author | Alan Mackenzie <acm@muc.de> | 2019-07-28 13:30:38 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2019-07-28 13:30:38 +0000 |
commit | dcba39b445e8f71c5f8df34a38ae8fc726a51843 (patch) | |
tree | a417520b3d343bf3b50008ddfa42ccb60f7a0a90 /test/lisp/emacs-lisp | |
parent | ba952d654ad005826a6a219fa97b49af30193cca (diff) | |
download | emacs-dcba39b445e8f71c5f8df34a38ae8fc726a51843.tar.gz |
CC Mode. Fix (c-beginning-of-defun -1) getting stuck with structs.
In particular, with an initialization such as struct foo {..} bar = {...};
* lisp/progmodes/cc-cmds.el (c-forward-to-nth-EOF-{): Rename to
c-forward-to-nth-EOF-\;-or-}, and when the starting (or ending) position is in
the "variable" part of a struct/class/union/enum/etc., move to after the
terminating semicolon. Adjust the counting such that N only gets decremented
on a successful movement over {..}.
(c-beginning-of-defun, c-end-of-defun): Rename the calls to
c-forward-to-nth-EOF-}, as above.
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions