From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.help Subject: Re: Navigating function arguments in C-styled Languages Date: Sat, 10 Oct 2009 10:15:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4cb666da-7cfc-496f-a949-62c3f6630fed@d10g2000yqh.googlegroups.com> References: <56319efb-81eb-4c86-ab7f-2ab2747cebd7@k41g2000vbt.googlegroups.com> <59567620-d8e2-4e06-86b5-3d5f59c3cdc7@k26g2000vbp.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 1255196456 25724 80.91.229.12 (10 Oct 2009 17:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2009 17:40:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 10 19:40:46 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 1Mwfvu-0007Er-P0 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Oct 2009 19:40:43 +0200 Original-Received: from localhost ([127.0.0.1]:53366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mwfvu-00015a-7Z for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Oct 2009 13:40:42 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!d10g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 82.235.205.153 Original-X-Trace: posting.google.com 1255194901 831 127.0.0.1 (10 Oct 2009 17:15:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 10 Oct 2009 17:15:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d10g2000yqh.googlegroups.com; posting-host=82.235.205.153; posting-account=ekTE0goAAADiVCThPmo4ph0C5bTUhQOx User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14) Gecko/2009090905 Fedora/3.0.14-1.fc10 Firefox/3.0.14, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173723 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:68813 Archived-At: On Oct 8, 9:36=A0am, Nordl=F6w wrote: > 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 ",". > "C-s ," ?