[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9501: 24.0.50; c-end-of-defun and c-beginning-of-defun are not conve
From: |
Alex |
Subject: |
bug#9501: 24.0.50; c-end-of-defun and c-beginning-of-defun are not convenient with C++ / namespaces |
Date: |
Sun, 14 Aug 2016 15:11:07 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
close 9501 24.5
quit
Hannu Koivisto <azure@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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#9501: 24.0.50; c-end-of-defun and c-beginning-of-defun are not convenient with C++ / namespaces,
Alex <=