[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to move by tokens when in a programming mode?
From: |
Andreas Politz |
Subject: |
Re: How to move by tokens when in a programming mode? |
Date: |
Wed, 08 Dec 2010 15:14:50 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
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.
-ap