From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mar@centrum.cz (Martin) Newsgroups: gmane.emacs.help Subject: Re: subword-mode for underscores? Date: Thu, 14 Jul 2011 21:20:18 +0200 Message-ID: <20110714192018.GA31838@chocholous.lan> References: <20110713222928.GB27549@chocholous.lan> <4E1EEB3B.5020005@dogan.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310672584 6190 80.91.229.12 (14 Jul 2011 19:43:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2011 19:43:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 21:42:59 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QhRoJ-0006m0-1m for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 21:42:59 +0200 Original-Received: from localhost ([::1]:40745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhRoI-0001oY-0X for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 15:42:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhRSV-0004Oj-7z for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 15:20:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhRSS-0001wD-6D for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 15:20:26 -0400 Original-Received: from smtp-out3.iol.cz ([194.228.2.91]:47507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhRSR-0001vh-9K for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 15:20:23 -0400 Original-Received: from antivir5.iol.cz (unknown [192.168.30.212]) by smtp-out3.iol.cz (Postfix) with ESMTP id 3EA29BCBBF6 for ; Thu, 14 Jul 2011 19:20:20 +0000 (UTC) Original-Received: from localhost (antivir5.iol.cz [127.0.0.1]) by antivir5.iol.cz (Postfix) with ESMTP id 2B9C61E8044 for ; Thu, 14 Jul 2011 21:20:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at iol.cz Original-Received: from antivir5.iol.cz ([127.0.0.1]) by localhost (antivir5.iol.cz [127.0.0.1]) (amavisd-new, port 10224) with LMTP id pi1Gr8J43FQO for ; Thu, 14 Jul 2011 21:20:20 +0200 (CEST) Original-Received: from port8.iol.cz (unknown [192.168.30.98]) by antivir5.iol.cz (Postfix) with ESMTP id 0B6E91E8034 for ; Thu, 14 Jul 2011 21:20:20 +0200 (CEST) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-IOL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhVRABBAH05VoEmG/2dsb2JhbABUhT+TIYp2hAd4iHzCGYVbXwSjNw Original-Received: from ip-85-160-73-134.eurotel.cz (HELO chocholous.lan) ([85.160.73.134]) by port8.iol.cz with ESMTP; 14 Jul 2011 21:20:19 +0200 Original-Received: by chocholous.lan (Postfix, from userid 1000) id 372002428D6; Thu, 14 Jul 2011 21:20:18 +0200 (CEST) Content-Disposition: inline In-Reply-To: <4E1EEB3B.5020005@dogan.se> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.228.2.91 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81588 Archived-At: My mistake. I had my Emacs Python setup "under re-construction" and obviously... err ... I did something wrong. Sorry and thanks. m. On Thu, Jul 14, 2011 at 03:12:27PM +0200, Deniz Dogan wrote: > On 2011-07-14 00:29, Martin wrote: > >Hello, > > > >I have just learned about "subword-mode" for CamelCase and I am wondering, > >if there is something simillar for underscores syntax (camel_case)? > > > >Most ideally have both variations in one buffer at a time -- as Python > >coding conventions like to have classes in CamelCase and > >other_things_with_underscore? > > > >Do you have any tips? > > > > Hi > > In this example, I have enabled python-mode and subword-mode and it > acts just as you would expect it to. > > class HelloThere: > def hello_there(): > return 1 > > Have I misunderstood the problem? > > Deniz >