opensubscriber
   Find in this group all groups
 
Unknown more information…

e : emacs-devel@gnu.org 19 November 2009 • 4:46PM -0500

CamelHump word movement in Emacs
by Tassilo Horn

REPLY TO AUTHOR
 
REPLY TO GROUP






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



Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.