From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Nordl=F6w?= Newsgroups: gmane.emacs.help Subject: Re: Navigating function arguments in C-styled Languages Date: Thu, 8 Oct 2009 00:36:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: <59567620-d8e2-4e06-86b5-3d5f59c3cdc7@k26g2000vbp.googlegroups.com> References: <56319efb-81eb-4c86-ab7f-2ab2747cebd7@k41g2000vbt.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254987658 27823 80.91.229.12 (8 Oct 2009 07:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 07:40:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 08 09:40:48 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MvncG-0000p7-Cp for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 09:40:48 +0200 Original-Received: from localhost ([127.0.0.1]:44057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvncF-0001WX-Th for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 03:40:47 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!k26g2000vbp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 150.227.15.253 Original-X-Trace: posting.google.com 1254987400 27420 127.0.0.1 (8 Oct 2009 07:36:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 8 Oct 2009 07:36:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k26g2000vbp.googlegroups.com; posting-host=150.227.15.253; posting-account=ytJKAgoAAAA1tg4ScoRszebXiIldA5vg User-Agent: G2/1.0 X-HTTP-Via: 1.1 ip1-w.foi.se:8080 (IronPort-WSA/6.3.0-523) X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.0 Safari/532.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173664 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68761 Archived-At: On Oct 8, 12:07=A0am, Alan Mackenzie wrote: > Nordlow 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. =A0Use 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"? =A0Not sure what you mean by this. =A0In > 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=F6w