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

Packages: cc-mode, emacs;

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 #10 received at control <at> debbugs.gnu.org (full text, mbox):

From: Alex <agrambot <at> gmail.com>
To: Hannu Koivisto <azure <at> iki.fi>
Cc: 9501 <at> debbugs.gnu.org
Subject: Re: 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
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.