emacs-devel
[Top][All Lists]
Advanced

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

Re: CamelHump word movement in Emacs


From: Giuseppe Scrivano
Subject: Re: CamelHump word movement in Emacs
Date: Thu, 19 Nov 2009 09:57:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

have you considered "c-subword-mode"?

Cheers,
Giuseppe



Tassilo Horn <address@hidden> writes:

> Hi all,
>
> in many editors for "modern" programming languages like Java or C#, the
> normal word movement commands also stop on CamelHumps.  This is very
> convenient, because nowadays the convention for identifiers names more
> and more turns to using camelCaseNaming.
>
> Here's an example:
>
>   int foo_bar_baz() {}
>
> With the usual forward/backward-word commands, point always stops at the
> _ (when moving forward) or the first char of the component word (when
> moving backward).  I really like that behavior.
>
> Unfortunately, it doesn't work if the function uses camelCase naming.
>
>   int fooBarBaz() {}
>
> Here, forward/backward-word jump over the complete identifier.  What I
> would really like to have, was that those commands move point to the
> capital letters (the 2 Bs), too.
>
> IMO, that would be the right thing to do, because camelCase is nearly
> never used for something else than separating words.
>
> What do you think?
>
> Bye,
> Tassilo




reply via email to

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