From: "Herbert Euler" <herberteuler@hotmail.com>
Cc: bug-cc-mode@gnu.org, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: On the behavior of `c-beginning-of-defun'
Date: Sun, 31 Dec 2006 17:40:52 +0800 [thread overview]
Message-ID: <BAY112-F15C64A1A9ECCB61C4FDC52DAC40@phx.gbl> (raw)
In-Reply-To: <20061230212715.GA1198@muc.de>
And is this a bug too?
For the following class definition:
class a_b::c_d1 : public e_f, public g_h
{
-!-};
Suppose -!- represents the location of point. `c-beginning-of-defun'
moves point to
class a_b::c_d1 : -!-public e_f, public g_h
{
};
Rather than
-!-class a_b::c_d1 : public e_f, public g_h
{
};
Thanks in advance.
Regards,
Guanpeng Xu
>From: Alan Mackenzie <acm@muc.de>
>To: Herbert Euler <xugp@alibaba-inc.com>
>CC: bug-cc-mode@gnu.org, herberteuler@hotmail.com, rms@gnu.org,
>emacs-devel@gnu.org
>Subject: Re: On the behavior of `c-beginning-of-defun'
>Date: Sat, 30 Dec 2006 21:27:15 +0000
>
>Hi, Guanpeng!
>
>On Sat, Dec 30, 2006 at 12:09:55PM +0800, Herbert Euler wrote:
> > Hello Alan,
>
>[ .... ]
>
> > I planned to use `c-beginning-of-defun' and `c-end-of-defun'. But I
> > found a strange behavior of `c-beginning-of-defun'. In the attatched
> > `x.c' file, `c-beginning-of-defun' moves point differently for the
> > function `main' and others. For the `main' function, it moves point
> > to the open of the function body, i.e. before the { at line 6; for
> > other functions, it moves point to the beginning of the definition of
> > the function, i.e. before the type specification of the return value
> > of the function.
>
>[ .... ]
>
> > Is this a bug or a desired behavior of `c-beginning-of-defun'?
>
>The behaviour of c-beginning-of-defun in your `main' function is a bug.
>c-b-o-d should go to before "int \nmain". As you wrote, the square
>brackets in "*argv[]" is confusing the function. Thanks for reporting
>this bug!
>
>I'll try and fix it soon.
>
> > Please reply to both this mail address (xugp@alibaba-inc.com) and my
> > orignal mail address (herberteuler@hotmail.com) if possible.
>
> > Thanks in advance.
>
> > Regards,
> > Guanpeng Xu
>
>
> > int
> > main (argc, argv)
> > int argc;
> > char *argv[];
> > {
> > if ()
> > ;
> > }
>
>[ .... ]
>
>--
>Alan Mackenzie (Ittersbach, Germany)
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
next prev parent reply other threads:[~2006-12-31 9:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200612301209.55371.xugp@alibaba-inc.com>
2006-12-30 20:15 ` On the behavior of `c-beginning-of-defun' Alan Mackenzie
2006-12-31 9:40 ` Herbert Euler [this message]
2006-12-31 22:13 ` Richard Stallman
2007-01-01 22:30 ` Alan Mackenzie
2007-01-02 1:19 ` Herbert Euler
2007-01-20 19:37 ` Alan Mackenzie
2007-01-21 1:19 Herbert Euler
2007-01-21 1:22 ` Herbert Euler
2007-01-21 19:33 ` Alan Mackenzie
2007-01-22 2:06 ` Herbert Euler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY112-F15C64A1A9ECCB61C4FDC52DAC40@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.