From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: Last call for lua-mode contributors Date: Thu, 19 Jan 2012 12:15:07 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326993340 1884 80.91.229.12 (19 Jan 2012 17:15:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2012 17:15:40 +0000 (UTC) Cc: Emacs Dev To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 19 18:15:34 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RnvaI-0001gl-4x for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2012 18:15:34 +0100 Original-Received: from localhost ([::1]:47116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnvaH-0000ba-MI for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2012 12:15:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnvaA-0000ar-G1 for emacs-devel@gnu.org; Thu, 19 Jan 2012 12:15:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rnva1-0000p5-DY for emacs-devel@gnu.org; Thu, 19 Jan 2012 12:15:26 -0500 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:43795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnvZv-0000oG-2n; Thu, 19 Jan 2012 12:15:11 -0500 Original-Received: by vcbfl11 with SMTP id fl11so155757vcb.0 for ; Thu, 19 Jan 2012 09:15:10 -0800 (PST) Original-Received: by 10.220.149.200 with SMTP id u8mr15918572vcv.35.1326993309875; Thu, 19 Jan 2012 09:15:09 -0800 (PST) Original-Received: from squish.raeburn.org (c-66-31-202-94.hsd1.ma.comcast.net. [66.31.202.94]) by mx.google.com with ESMTPS id eh3sm16143vdc.2.2012.01.19.09.15.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Jan 2012 09:15:08 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.169 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:147739 Archived-At: On Jan 17, 2012, at 23:32, Miles Bader wrote: > immerrr again writes: >> As some of you might know, lua-mode, Emacs major mode for editing = Lua, is >> undergoing integration to Emacs mainline. >=20 > Hopefully lua-mode's bogus handling of symbols vs. words will finally > be fixed as a result..... >=20 > [lua-mode redefines "_" as a word-component; it shouldn't, as it > really messes with users' instincts, and makes Emacs commands less > useful. Historically this was often done by language-modes as an > simple (though misguided) expedient to allow them to safely use "\<" > and \>" in regexps matching keywords, but nowadays they shouldn't do > that, they should leave "_" alone and use "\_<" and "\_>" instead.] My "instincts" have long been to interpret "word" as "identifier or = keyword" in programming modes, to the point of customizing the syntax = tables at startup to make "_" a word component. Not for regular = expressions, but for word-motion commands; I like the fact that I can = skip over one identifier with M-f no matter how many underscores it = contains -- string_to_widget, stringToWidget, string2widget, and = stringtowidget are all treated the same. It's also more useful in = constructing keyboard macros that kill-word identifiers and later yank = them from the kill ring; typing in a regexp search would be much more = annoying. I haven't made the customization yet at my new (well, ~2 years) job -- = but that's because our coding standards use camelCaseAndNoUnderscores so = the word-motion commands already work on identifiers and not on = (English) words. (Though I've been dealing with Linux code lately, so = it may be time to make the change.) If I often wanted to deal with the = individual English words making up an identifier, the handling of = underscore wouldn't be enough to make Emacs work correctly. I realize I'm much closer to the power-user end of the spectrum than = most typical users, but among those heavily using programming modes, is = this such a strange mind-set? (I have no particular opinion on lua-mode specifically.) Ken=