From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: marc0 Newsgroups: gmane.emacs.help Subject: Re: C++ Mode: Interpretation of Underscores In Words Date: Wed, 12 Nov 2003 17:57:26 +0100 Organization: individual Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87oevhjzih.fsf@despammed.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068663160 24230 80.91.224.253 (12 Nov 2003 18:52:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2003 18:52:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 12 19:52:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AK06X-0004a9-00 for ; Wed, 12 Nov 2003 19:52:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AK13m-0001yo-HJ for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Nov 2003 14:53:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: host162-0.pool80183.interbusiness.it Original-X-Trace: quimby.gnus.org 1068656520 6828 80.183.0.162 (12 Nov 2003 17:02:00 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 12 Nov 2003 17:02:00 +0000 (UTC) User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:bNH/sK2EUwq5xFjCwIiIqM+EUHI= Original-Xref: shelby.stanford.edu gnu.emacs.help:118172 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:14112 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14112 Sandip Chitale on Wed, 12 Nov 2003 16:33:45 GMT writes: >
The word boundary is controlled by the syntax > table. You can change the syntax of _ to be part of the word using > modify-syntax.
>
Do C-h f modify-syntax RET to get help on the > defun. This however may affect other features >
Given a variable like "employee_name" is there a way to make emacs > treat this as one word.  Would be nice when doing commands > like "forward-word" which treats employee_name as two words. 
>
 
or while in cc-mode: M-x modify-syntax-entry RET _ RET w RET but, as Stefan wrote, there are C-M-f and similar. PS: please stop posting in HTML. HTML posts are less accessible then plain-text ones, HTML posts make archives less useful to search with grep & co, they take more space and bandwith, they are nearly-unreadable for many peoples who have no HTML redering configuration, and take away (cpu-)time to peoples who have it. plain-text is enought for mail, anyone setups its MUA/NR to display mails with the fonts/colors/font-size he wants, paragraph separator can be an empty line. -- marc0@autistici.org - 0x4E8899C2