From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: CamelHump word movement in Emacs Date: Thu, 19 Nov 2009 09:46:54 +0100 Message-ID: <873a4akikh.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258620444 30953 80.91.229.12 (19 Nov 2009 08:47:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 08:47:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 19 09:47:17 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NB2fZ-0006rL-Ci for ged-emacs-devel@m.gmane.org; Thu, 19 Nov 2009 09:47:13 +0100 Original-Received: from localhost ([127.0.0.1]:38160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB2fT-0008C5-R1 for ged-emacs-devel@m.gmane.org; Thu, 19 Nov 2009 03:47:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NB2fN-0008BA-Tv for emacs-devel@gnu.org; Thu, 19 Nov 2009 03:47:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB2fJ-0008AA-7E for emacs-devel@gnu.org; Thu, 19 Nov 2009 03:47:01 -0500 Original-Received: from [199.232.76.173] (port=49642 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB2fJ-0008A7-3o for emacs-devel@gnu.org; Thu, 19 Nov 2009 03:46:57 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:6443) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NB2fI-0002Vl-Nv for emacs-devel@gnu.org; Thu, 19 Nov 2009 03:46:56 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id CCF6778A2E79 for ; Thu, 19 Nov 2009 09:46:55 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08534-05 for ; Thu, 19 Nov 2009 09:46:55 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (wlan-83.uni-koblenz.de [141.26.93.83]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 1AC6B78A2E75 for ; Thu, 19 Nov 2009 09:46:55 +0100 (CET) Mail-Copies-To: never Mail-Followup-To: emacs-devel@gnu.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117238 Archived-At: 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