GNU bug report logs -
#9501
24.0.50; c-end-of-defun and c-beginning-of-defun are not convenient with C++ / namespaces
Previous Next
Reported by: Hannu Koivisto <azure <at> iki.fi>
Date: Wed, 14 Sep 2011 08:21:02 UTC
Severity: normal
Found in version 24.0.50
Fixed in version 24.5
Done: Alex <agrambot <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 9501 <at> debbugs.gnu.org (full text, mbox):
close 9501 24.5
quit
Hannu Koivisto <azure <at> iki.fi> writes:
> Create file test.h with the following content:
>
> namespace Kala {
>
> void function()
> {
> }
>
> void function2()
> {
> }
>
> }
>
> Run emacs -Q test.h. Enter c++-mode with M-x c++-mode RET. Move to
> the first line of "function". Hit C-M-e. Observe that point moves
> to the end of the buffer. Move to the first line of
> "function2". Hit C-M-a. Observe that point moves to the beginning
> of the buffer. Now, documentation of c-end-of-defun says "Move
> forward to the end of a top level declaration." and you could argue
> that namespace Kala is the only top level declaration and therefore
> this behaviour is correct, but I argue that in practice this
> behaviour is not useful.
This works correctly in 24.5.
This bug report was last modified 8 years and 338 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.