From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Navigating function arguments in C-styled Languages
Date: Thu, 8 Oct 2009 00:36:40 -0700 (PDT) [thread overview]
Message-ID: <59567620-d8e2-4e06-86b5-3d5f59c3cdc7@k26g2000vbp.googlegroups.com> (raw)
In-Reply-To: haj3ep$2a5c$1@colin2.muc.de
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 ",".
I think I could write this function on my own but first I ask others
so I don't reinvent the wheel.
/Nordlöw
next prev parent reply other threads:[~2009-10-08 7:36 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 [this message]
2009-10-10 17:15 ` Francis Moreau
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=59567620-d8e2-4e06-86b5-3d5f59c3cdc7@k26g2000vbp.googlegroups.com \
--to=per.nordlow@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.