From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giuseppe Scrivano Newsgroups: gmane.emacs.devel Subject: Re: CamelHump word movement in Emacs Date: Thu, 19 Nov 2009 09:57:47 +0100 Message-ID: <87skcaevsk.fsf@mandingo.thematica.it> References: <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 1258621092 305 80.91.229.12 (19 Nov 2009 08:58:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 08:58:12 +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:58:05 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 1NB2q5-00037r-7M for ged-emacs-devel@m.gmane.org; Thu, 19 Nov 2009 09:58:05 +0100 Original-Received: from localhost ([127.0.0.1]:50234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB2q4-0006Jk-Be for ged-emacs-devel@m.gmane.org; Thu, 19 Nov 2009 03:58:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NB2pz-0006JX-AM for emacs-devel@gnu.org; Thu, 19 Nov 2009 03:57:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB2pu-0006IA-Uh for emacs-devel@gnu.org; Thu, 19 Nov 2009 03:57:59 -0500 Original-Received: from [199.232.76.173] (port=38398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB2pu-0006I5-NV for emacs-devel@gnu.org; Thu, 19 Nov 2009 03:57:54 -0500 Original-Received: from mail-bw0-f215.google.com ([209.85.218.215]:36734) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NB2pu-0004LJ-9s for emacs-devel@gnu.org; Thu, 19 Nov 2009 03:57:54 -0500 Original-Received: by bwz7 with SMTP id 7so2264017bwz.26 for ; Thu, 19 Nov 2009 00:57:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject :references:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=fsbI6SZOgi3ublTQRsybDQJks4FG6Z0gSeexbRiQEFk=; b=PDgRo2GHoxtiGlC3iI9TjcFJ/Vy/BdEMXnHOKlqpaG5NlS31kZxpbA34eVFfysI5vS Big9wVwfIk/49fZ63VXWHicm82DHIJJFiiT8PXcUXsLPMFg39DWCAOLBcZK1ZDbDSBMl HTnpN+rNJWGHlTBpk488NtrGidkBC6ROIOLik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=dEZ/sq/u9SC+UWU2dlfW/etvkSNjhS202QvChDScNaexp2wU8I0z3Pst1VQy5Fo5pr vKnqe/E+KJBacuwIZqiaLk+CsHjHbBwyfovivjPVnfxa0tJA2C5lu+fHicDxVSeSxJ/j +TfaOnesqbdIwxJz1SvZPRU+O919Eo5Bc+Hnk= Original-Received: by 10.204.154.131 with SMTP id o3mr6923662bkw.66.1258621072918; Thu, 19 Nov 2009 00:57:52 -0800 (PST) Original-Received: from mandingo.thematica.it (host41-158-static.104-82-b.business.telecomitalia.it [82.104.158.41]) by mx.google.com with ESMTPS id 16sm94634fxm.4.2009.11.19.00.57.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 19 Nov 2009 00:57:51 -0800 (PST) In-Reply-To: <873a4akikh.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 19 Nov 2009 09:46:54 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:117240 Archived-At: have you considered "c-subword-mode"? Cheers, Giuseppe Tassilo Horn 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