From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gary Newsgroups: gmane.emacs.help Subject: Re: Understanding Word Boundaries Date: Wed, 23 Jun 2010 11:02:16 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1277285138 9498 80.91.229.12 (23 Jun 2010 09:25:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Jun 2010 09:25:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 23 11:25:37 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ORMDA-0002mh-5K for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jun 2010 11:25:37 +0200 Original-Received: from localhost ([127.0.0.1]:56263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORMAk-00028L-0U for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jun 2010 05:23:06 -0400 Original-Received: from [140.186.70.92] (port=33596 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORLqw-0005u0-Mb for help-gnu-emacs@gnu.org; Wed, 23 Jun 2010 05:02:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORLqj-0003Bk-Un for help-gnu-emacs@gnu.org; Wed, 23 Jun 2010 05:02:26 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:42554) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORLqj-0003BY-Oe for help-gnu-emacs@gnu.org; Wed, 23 Jun 2010 05:02:25 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ORLqh-0003SE-Qk for help-gnu-emacs@gnu.org; Wed, 23 Jun 2010 11:02:23 +0200 Original-Received: from ge-u-fw01.ggamaur.net ([213.160.40.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jun 2010 11:02:23 +0200 Original-Received: from help-gnu-emacs by ge-u-fw01.ggamaur.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jun 2010 11:02:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ge-u-fw01.ggamaur.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (cygwin) X-No-Archive: Yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2010-07-07 Xref: news.gmane.org gmane.emacs.help:73966 Archived-At: Paul Drummond writes: > ** Example 2 > > When editing C++ files I often need to delete the "ClassName::" part when > declaring functions in the header: > > void ClassName::function(); >        ^ > > With point at the start of ClassName I want to press M-d twice to delete > ClassName and :: but "::" isn't recognised as a word.  In Vim I just Twice? Three times, shirley? Class and Name are both words... (As you might guess, my pet peeve about the word boundary recognition is when programming using camelcase.) > So to wrap up, the point of this post is to kick-start a discussion about why > the word boundaries in Vanilla Emacs (specifically GNU Emacs 23.1.50.1 in my > case) seem to be so awkward and unintuitive. Because it needs to be defined somewhat differently for natural languages and different programming languages, at a guess. What a word is depends entirely on the context you (and I) decide, and they may well be different (see two versus three key presses above).