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: Underscores and word commands Date: Thu, 19 Jan 2012 13:57:02 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326999439 17794 80.91.229.12 (19 Jan 2012 18:57:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2012 18:57:19 +0000 (UTC) Cc: Emacs Dev , Miles Bader To: Ken Raeburn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 19 19:57:15 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 1RnxAh-00013e-0H for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2012 19:57:15 +0100 Original-Received: from localhost ([::1]:34146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnxAg-0003p8-L5 for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2012 13:57:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnxAb-0003jM-Rq for emacs-devel@gnu.org; Thu, 19 Jan 2012 13:57:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnxAa-00027Q-Mq for emacs-devel@gnu.org; Thu, 19 Jan 2012 13:57:09 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:46768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnxAY-00027A-Ta; Thu, 19 Jan 2012 13:57:07 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q0JIv29w001711; Thu, 19 Jan 2012 13:57:02 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 62FDA130077; Thu, 19 Jan 2012 13:57:02 -0500 (EST) In-Reply-To: (Ken Raeburn's message of "Thu, 19 Jan 2012 12:15:07 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4106=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4106> : streams <721241> : uri <1049852> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:147744 Archived-At: > My "instincts" have long been to interpret "word" as "identifier or keyword" That's OK. > in programming modes, to the point of customizing the syntax tables at > startup to make "_" a word component. Not for regular expressions, but for While you're free to do it in your .emacs of course, it's not a good solution when it makes its way into a package's source code because it then imposes this conflation of the two concepts on every user (they can't easily fix it in their .emacs). C-M-SPC, C-M-f, and C-M-b already jump over symbols in many of the relevant cases, but we should probably offer, along the lines of subword-mode, a new minor mode that makes word commands operate on symbols rather than just words (without messing with syntax tables, since that can have much further reaching consequences). Stefan