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: [PATCH 1/2] Merge subword-mode and capitalized-words-mode Date: Tue, 07 Aug 2012 16:37:34 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344371867 21504 80.91.229.3 (7 Aug 2012 20:37:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 20:37:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 22:37:47 2012 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 1SyqX8-0002nM-6p for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2012 22:37:42 +0200 Original-Received: from localhost ([::1]:35680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyqX7-0008Qf-GZ for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2012 16:37:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyqX4-0008Pq-4W for emacs-devel@gnu.org; Tue, 07 Aug 2012 16:37:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyqX2-0006f0-W7 for emacs-devel@gnu.org; Tue, 07 Aug 2012 16:37:38 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:39598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyqX2-0006eP-T4 for emacs-devel@gnu.org; Tue, 07 Aug 2012 16:37:36 -0400 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 q77KbYQF023207; Tue, 7 Aug 2012 16:37:35 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id B5D7FB4081; Tue, 7 Aug 2012 16:37:34 -0400 (EDT) In-Reply-To: (Daniel Colascione's message of "Tue, 07 Aug 2012 10:03:52 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4303=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4303> : streams <795952> : uri <1186327> 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:152294 Archived-At: > subword-mode began life as part of cc-mode, but because it's > generally useful, it was extracted and made a generic part of > Emacs. subword-mode uses command remapping to achive its subword > motion, however, and this mechanism can't catch all kinds of word- > based motion, resulting in inconsistency. > capitalized-words-mode attempts to do what subword-mode does, but > using a hook added to C core for the purpose. This hook allows > capitalizd-words-mode to change all kinds of word-based motion > into subword motion. Unfortunately, capitalized-words-mode used > overly simplistic code that caused it to fail to properly move > over words like "fooBarBAZ"; subword-mode handles these words > properly. capitalized-words-mode is also disadvantaged by > a long and misleading name. > This patch merges subword-mode and capitalized-words-mode by > modifying subword-mode to use the core hook and marking > capitalized-words-mode as an obsolete alias for subword-mode. I like consolidation like that. But now, I wonder about bugs that can be introduced by the pervasive impact of capitalized-words-mode. My guess is that most of the potential problems we might bump into will be the result of bugs that can also be triggered without capitalized-words-mode (i.e. they just get triggered more easily with capitalized-words-mode). Stefan