all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Navigating function arguments in C-styled Languages
Date: Sat, 10 Oct 2009 10:15:01 -0700 (PDT)	[thread overview]
Message-ID: <4cb666da-7cfc-496f-a949-62c3f6630fed@d10g2000yqh.googlegroups.com> (raw)
In-Reply-To: 59567620-d8e2-4e06-86b5-3d5f59c3cdc7@k26g2000vbp.googlegroups.com

On Oct 8, 9:36 am, Nordlöw <per.nord...@gmail.com> wrote:
> On Oct 8, 12:07 am, Alan Mackenzie <a...@muc.de> wrote:
>
> > Nordlow <per.nord...@gmail.com> wrote:
> > > Can we somehow navigate, reorder (transpose) or iterate the function
> > > arguments of a function decl/def in C-styled languages like we can
> > > with lisp sexps?
>
> > Yes.  Use C-M-f, C-M-b (`forward/backward-sexp') to move through them,
> > C-M-t (`transpose-sexps') to transpose them (use a numerical prefix
> > argument if you're adventurous ;-), C-M-k (`kill-sexp') to murder one.
>
> > "Iterate a function argument"?  Not sure what you mean by this.  In
> > English, you can only iterate an action, not a thing.
>
> > --
> > Alan Mackenzie (Nuremberg, Germany).
>
> No, forward/backward-sexp does not work the way you describe in cc-
> mode.
>
> Try for example:
>
> float add(float * x, float * y)
>
> When I stand anywhere on the expression "float * x", preferrably at
> the "f", I want a function, say c-forward-argument, that places the
> cursor after the comma ",".
>

"C-s ," ?


      reply	other threads:[~2009-10-10 17:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07 19:23 Navigating function arguments in C-styled Languages Nordlöw
2009-10-07 22:07 ` Alan Mackenzie
2009-10-08  7:36   ` Nordlöw
2009-10-10 17:15     ` Francis Moreau [this message]

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=4cb666da-7cfc-496f-a949-62c3f6630fed@d10g2000yqh.googlegroups.com \
    --to=francis.moro@gmail.com \
    --cc=help-gnu-emacs@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.