unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: subword-mode
Date: Wed, 25 Nov 2009 14:22:27 +0900	[thread overview]
Message-ID: <buo3a4318mk.fsf@dhlpc061.dev.necel.com> (raw)
In-Reply-To: <jwvws1fp735.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 24 Nov 2009 23:26:39 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I just bumped into find-word-boundary-function-table, which lead me to
> its only user: cap-words.el.
>
> It seems both subword.el and cap-words.el provide the same feature (tho
> cap-words.el is obviously not good at advertising itself, ahem).

Given that it's only about 3 lines long, and apparently works by taking
advantage of some existing low-level mechanism, cap-words.el seems by
far the more elegant implementation...

However.... it doesn't seem to actually work correctly in many cases;
perhaps the low-level feature has bit-rotted?

E.g.: given the example word in the file "capitalizedWorDD", and turning
on `capitalized-words-mode', moving _backwards_ from the end of the
string with M-b stops at the first "D", then the "W', then the beginning
"c" -- that's correct except that it should have stopped at the second
"D" first.  However moving _forwards_ from the beginning with M-f, it
only stops at the second "D".

-Miles

-- 
Absurdity, n. A statement or belief manifestly inconsistent with one's own
opinion.




  reply	other threads:[~2009-11-25  5:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25  4:26 subword-mode Stefan Monnier
2009-11-25  5:22 ` Miles Bader [this message]
2009-11-25  7:58   ` subword-mode Tassilo Horn
2009-11-25  9:31     ` subword-mode Miles Bader
2009-11-25 14:19   ` subword-mode Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=buo3a4318mk.fsf@dhlpc061.dev.necel.com \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).