GNU bug report logs - #16190
23.4; M-x captialize-word works incorrectly

Previous Next

Package: emacs;

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


Message #11 received at 16190 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: caleb <at> compwizard.net, 16190 <at> debbugs.gnu.org
Subject: Re: bug#16190: 23.4; M-x captialize-word works incorrectly
Date: Thu, 19 Dec 2013 09:36:54 +0100
On Thu, 19 Dec 2013 05:51:02 +0200 Eli Zaretskii <eliz <at> gnu.org> wrote:

>> Date: Thu, 12 Dec 2013 23:03:28 -0500
>> From: Caleb Wakeman <cdw1992 <at> twcny.rr.com>
>> 
>> With point in the middle of a word, I ran M-x capitalize-word.  Rather 
>> than capitalize the first letter of the word, as I expected, it 
>> capitalized the character at point and moved point to the end of the 
>> word.  (Specifically, rather than change `word' (wo-!-rd) to `Word', it 
>> changed it to `woRd'.)
>
> 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.

Steve Berman




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.