Problem with c-beginning-of-defun.

I'm having trouble with c-beginning-of-defun in a C++ file (GNU Emacs 23.1.1 (sparc-sun-solaris2.10, X
toolkit)).  The code I'm viewing is wrapped with 2 namespaces, as in:

namespace X
{
namespace Y
{

void classname::memberfcn1(...)
{
...
}

void classname::memberfcn2(...)
{
...
}

}
}

The problem is that when I'm within a fcn, sometimes c-beginning-of-defun backs up to the beginning of the
function, sometimes to the namespace X line, and sometimes to the namespace Y line.  Why is this, and how do I
get it to only go back to the beginning of the function?

Thanks,

Harvey
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
(Continue reading)

Re: Problem with c-beginning-of-defun.

Alan -
I couldn't anonCVS from work, but I was able to pull the current dev version from:
   http://cc-mode.cvs.sourceforge.net/viewvc/cc-mode/cc-mode/
(where it lets people download a .tar.gz).

In any case, this version fixed the problem.  Thanks!

-- Harvey

----- Original Message ----
From: acm <at> muc.de
To: HARVEY STEIN (BLOOMBERG/ 731 LEXIN)
Cc: bug-cc-mode <at> gnu.org
At:  5/20  5:47:22

Hi, Harvey.

On Thu, May 19, 2011 at 06:02:31PM -0400, HARVEY STEIN, BLOOMBERG/ 731 LEXIN wrote:
> I'm having trouble with c-beginning-of-defun in a C++ file (GNU Emacs
> 23.1.1 (sparc-sun-solaris2.10, X toolkit)).  The code I'm viewing is
> wrapped with 2 namespaces, as in:

> namespace X
> {
> namespace Y
> {
>
> void classname::memberfcn1(...)
> {
> ...
(Continue reading)


Gmane