emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r112104: * progmodes/cfengine.el


From: Stefan Monnier
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]