help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to move by tokens when in a programming mode?


From: Marc Mientki
Subject: Re: How to move by tokens when in a programming mode?
Date: Wed, 08 Dec 2010 15:14:53 -0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5

Am 18.06.2010 10:45, schrieb Andreas Politz:
Elena<egarrulo@gmail.com>  writes:

Hello,

is there some elisp code to move by tokens when a programming mode is
active? For instance, in the following C code:

double value = f ();

the point - represented by | - would move like this:

|double value = f ();
double |value = f ();
double value |= f ();
double value = |f ();
double value = f |();
double value = f (|);
double value = f ()|;

Thanks.

Emacs does not know about tokens, but, accidentally, cc-mode has
functions c-forward-token-1 and c-forward-token-2.  You only have to
write a wrapper command for one of them.

I was not the asker but I say THANKS! This is what I looking for, too.

regards & thanks!
Marc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]