GNU bug report logs -
#16190
23.4; M-x captialize-word works incorrectly
Previous Next
Reported by: caleb <at> compwizard.net
Date: Thu, 19 Dec 2013 01:53:02 UTC
Severity: minor
Tags: notabug
Found in version 23.4
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> > That's how capitalize-word is supposed to work. It's not a bug, but
> > intended behavior.
>
> Then its doc string is incorrect:
>
> capitalize-word is an interactive built-in function in `C source code'.
>
> It is bound to M-c.
>
> (capitalize-word ARG)
>
> Capitalize the following word (or ARG words), moving over.
> This gives the word(s) a first character in upper case
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> and the rest lower case.
> ^^^^^^^^^^^^^^^^^^^^^^^^
> With negative argument, capitalize previous words but do not move.
The key here is the *word that starts at point*. With point after the `n'
here: "another", the word that starts at point is "other".
It could help for the doc to explicitly emphasize this, as an extra tip.
That is, to point out that there is no scanning backward to find the
maximal word, i.e., to find a non word-constituent character.
But this should be treated as extra info, implied by a statement
(missing, it seems) that the word starts at point. "The following word"
is too loose a description to make this clear.
This bug report was last modified 11 years and 149 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.