From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Daniel Colascione <dancol@dancol.org>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH 1/2] Merge subword-mode and capitalized-words-mode
Date: Tue, 07 Aug 2012 16:37:34 -0400 [thread overview]
Message-ID: <jwvfw7yigrw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <f5700e10ab0deca0a2060a86d931d9bb36f8d610.1344358927.git.dancol@dancol.org> (Daniel Colascione's message of "Tue, 07 Aug 2012 10:03:52 -0700")
> 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
next prev parent reply other threads:[~2012-08-07 20:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 17:03 [PATCH 0/2] Merge subword-mode and capitalized-words-mode; add to UI Daniel Colascione
2012-08-07 17:03 ` [PATCH 2/2] For better visibility, add subword-mode to options menu Daniel Colascione
2012-08-08 7:53 ` Chong Yidong
2012-08-08 16:25 ` Daniel Colascione
2012-08-07 17:03 ` [PATCH 1/2] Merge subword-mode and capitalized-words-mode Daniel Colascione
2012-08-07 18:33 ` Masatake YAMATO
2012-08-07 20:43 ` Daniel Colascione
2012-08-07 21:00 ` Daniel Colascione
2012-08-08 2:58 ` Eli Zaretskii
2012-08-07 20:37 ` Stefan Monnier [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-12-30 2:03 Daniel Colascione
2011-12-30 11:23 ` Stefan Monnier
2012-01-04 15:54 ` Masatake YAMATO
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfw7yigrw.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dancol@dancol.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.