From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r112104: * progmodes/cfengine.el (cfengine-common-syntax): Add "_" to word syntax. Date: Fri, 22 Mar 2013 10:13:36 -0400 Message-ID: References: <87wqt0xqiy.fsf@lifelogs.com> <87sj3ny4ca.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363961634 5357 80.91.229.3 (22 Mar 2013 14:13:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Mar 2013 14:13:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 22 15:14:20 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UJ2jV-0007Dm-G9 for ged-emacs-devel@m.gmane.org; Fri, 22 Mar 2013 15:14:13 +0100 Original-Received: from localhost ([::1]:38062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ2j7-0006QJ-Ud for ged-emacs-devel@m.gmane.org; Fri, 22 Mar 2013 10:13:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ2j0-0006Q9-FP for emacs-devel@gnu.org; Fri, 22 Mar 2013 10:13:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJ2iv-0003OW-M3 for emacs-devel@gnu.org; Fri, 22 Mar 2013 10:13:42 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:60734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ2iv-0003OQ-Hl for emacs-devel@gnu.org; Fri, 22 Mar 2013 10:13:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxKvA/2dsb2JhbABEvw4Xc4IeAQEEAVYoCws0BwsUGA2IQgbBLY1hgykDn1yFHoFegxM X-IPAS-Result: Av4EABK/CFFFxKvA/2dsb2JhbABEvw4Xc4IeAQEEAVYoCws0BwsUGA2IQgbBLY1hgykDn1yFHoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5536020" Original-Received: from 69-196-171-192.dsl.teksavvy.com (HELO pastel.home) ([69.196.171.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 22 Mar 2013 10:13:34 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6194267AAC; Fri, 22 Mar 2013 10:13:36 -0400 (EDT) In-Reply-To: <87sj3ny4ca.fsf@lifelogs.com> (Ted Zlatanov's message of "Fri, 22 Mar 2013 09:03:01 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158063 Archived-At: > OK, but what's wrong with generally declaring the _ character a word > component? In other words, what's wrong with my fix? I think I'd > rather make a base change to word syntax and use simple word motion than > change the word motion I use to symbol motion. It seems more > maintainable because CFEngine generally treats the underscore as a word > component. Basically, the definition of a word is something that major modes should not touch, because it is a notion from human language, and not from the programming language in use in a particular buffer. The major mode should define the syntax of symbols (aka "identifiers") instead. Stefan