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, 21 Jan 2007 09:22:49 +0800 [thread overview]
Message-ID: <BAY112-F274F6EE27966140C13ABF2DAAF0@phx.gbl> (raw)
In-Reply-To: <BAY112-F26EF15811F1B3516118311DAAF0@phx.gbl>
All functions are in the attached file. I'm sorry I forgot to
declare this.
Best regards,
Guanpeng Xu
>From: "Herbert Euler" <herberteuler@hotmail.com>
>To: acm@muc.de, xugp@alibaba-inc.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, 21 Jan 2007 09:19:44 +0800
>
>>Please try out the amended version and let me know if anything's not
>>right.
>
>I did not test all cases but only the case that function
>`c-beginning-of-defun' fails. I think it is almost Ok. However,
>please try the following case, it might be a bug.
>
>Suppose `-!-' indicates the position of point. If point is, for
>example, in the body of function `main1':
>
> /* 1. K&R C. */
>
> /* This will not get correct result until the bug in CC mode is fixed.
> See
> http://lists.gnu.org/archive/html/emacs-devel/2006-12/msg01341.html
>*/
> int
> main1 (argc, argv)
> int argc;
> char *argv[];
> {
> -!-/* ... */
> }
>
>Then `c-beginning-of-defun' moves point to before ``int'':
>
> /* 1. K&R C. */
>
> /* This will not get correct result until the bug in CC mode is fixed.
> See
> http://lists.gnu.org/archive/html/emacs-devel/2006-12/msg01341.html
>*/
> -!-int
> main1 (argc, argv)
> int argc;
> char *argv[];
> {
> /* ... */
> }
>
>Which is a desired behavior. But if point is just after ``[]'':
>
> /* 1. K&R C. */
>
> /* This will not get correct result until the bug in CC mode is fixed.
> See
> http://lists.gnu.org/archive/html/emacs-devel/2006-12/msg01341.html
>*/
> int
> main1 (argc, argv)
> int argc;
> char *argv[]-!-;
> {
> /* ... */
> }
>
>`c-beginning-of-defun' moves point to the start of the file, rather
>than the desired position.
>
>This is the only problem I can see until now. Thank you very much.
>
>Regards,
>Guanpeng Xu
>
>_________________________________________________________________
>FREE pop-up blocking with the new MSN Toolbar - get it now!
>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
><< x.c >>
>_______________________________________________
>Emacs-devel mailing list
>Emacs-devel@gnu.org
>http://lists.gnu.org/mailman/listinfo/emacs-devel
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
-------------------------------------------------------------------------
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:[~2007-01-21 1:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-21 1:19 On the behavior of `c-beginning-of-defun' Herbert Euler
2007-01-21 1:22 ` Herbert Euler [this message]
2007-01-21 19:33 ` Alan Mackenzie
2007-01-22 2:06 ` Herbert Euler
[not found] <200612301209.55371.xugp@alibaba-inc.com>
2006-12-30 20:15 ` Alan Mackenzie
2006-12-31 9:40 ` Herbert Euler
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
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-F274F6EE27966140C13ABF2DAAF0@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.