From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: C++ Mode: Interpretation of Underscores In Words Date: 12 Nov 2003 18:54:57 GMT Organization: IBM T.J. Watson Research Center Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1068665732 30133 80.91.224.253 (12 Nov 2003 19:35:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2003 19:35:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 12 20:35:29 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 1AK0m1-0007VB-00 for ; Wed, 12 Nov 2003 20:35:29 +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 1AK1fo-0003pq-FU for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Nov 2003 15:33:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!an02.austin.ibm.com!ausnews.austin.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!alpha.watson.ibm.com!kgold Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: alpha.watson.ibm.com Original-X-Trace: news.btv.ibm.com 1068663297 16800 9.2.16.245 (12 Nov 2003 18:54:57 GMT) Original-X-Complaints-To: news@btv.ibm.com Original-NNTP-Posting-Date: 12 Nov 2003 18:54:57 GMT X-Newsreader: xrn 9.02 Original-Xref: shelby.stanford.edu gnu.emacs.help:118179 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:14120 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14120 Joe Mama writes: > 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. Here are the two steps you need to do. Both are required! 1 - Reconfigure your client to turn off HTML when posting to news groups and mailing lists. 2 - Add this to your .emacs: (add-hook 'c-mode-common-hook (function (lambda () (modify-syntax-entry ?_ "w" c++-mode-syntax-table) (modify-syntax-entry ?_ "w" c-mode-syntax-table) (modify-syntax-entry ?_ "w" java-mode-syntax-table) ))) --