From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.bugs Subject: bug#16190: 23.4; M-x captialize-word works incorrectly Date: Fri, 27 Dec 2013 21:31:25 -0800 Message-ID: References: <52AA8710.4030706@twcny.rr.com> <83sitpbis9.fsf@gnu.org> <87ppotuti1.fsf@rosalinde.fritz.box> <83haa4bubq.fsf@gnu.org> <52B7BA11.10004@twcny.rr.com> <8361qf8s1t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1388208734 26101 80.91.229.3 (28 Dec 2013 05:32:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Dec 2013 05:32:14 +0000 (UTC) Cc: 16190@debbugs.gnu.org To: Kevin Rodgers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 28 06:32:15 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VwmVT-0000sP-O7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Dec 2013 06:32:15 +0100 Original-Received: from localhost ([::1]:51220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwmVT-0005um-5R for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Dec 2013 00:32:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwmVM-0005uh-5W for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:32:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwmVH-0007gt-4p for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:32:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwmVH-0007gL-29 for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VwmVG-0003Vd-HN for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Josh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Dec 2013 05:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16190 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 16190-submit@debbugs.gnu.org id=B16190.138820872013478 (code B ref 16190); Sat, 28 Dec 2013 05:32:02 +0000 Original-Received: (at 16190) by debbugs.gnu.org; 28 Dec 2013 05:32:00 +0000 Original-Received: from localhost ([127.0.0.1]:47614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwmVD-0003VJ-Uv for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:32:00 -0500 Original-Received: from mail-wi0-f172.google.com ([209.85.212.172]:56753) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwmVB-0003VA-BT for 16190@debbugs.gnu.org; Sat, 28 Dec 2013 00:31:57 -0500 Original-Received: by mail-wi0-f172.google.com with SMTP id en1so14874670wid.11 for <16190@debbugs.gnu.org>; Fri, 27 Dec 2013 21:31:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=APfcrde1x22xoLm9tX3tggk717sdAJuN8oCHtJWmSXE=; b=LrxyfcI39royroIhs28NhZJMkiZQityCBt4m2safaztI5mckTAPSxhixGmTxqTiifg m1OqXOL2XKReuQcomMbTIT7rxNFsEEhNtKjwMA/5g/5DhZTxW+JQ4TArih4vCkwtae7I KJhiW4fz/mwIEqc080clt0sMZV2/tck8pPJ3PbFPPTbootziBJIZd3yI3cEKdqmD6jrM ehooFXsCMMTOg6kfN2E6mOXVp4owdplDilTxIIY+ZPVnCCyNM7yzvs/XFHJaWPO0zCEq YU7CaXW8VBN1Jr9EBS0A+jKVSDNTTM6Edz0kez9c7j3N/jI0M6HT2az9JLPeN5FuQDQo WIeg== X-Gm-Message-State: ALoCoQka+/JtA72oUsLLJ+tZWQH9OGatNtPDnNA3hjVggsSgmeKgkGhKOWj85UJqVGDZG24Ike0C X-Received: by 10.181.12.20 with SMTP id em20mr36559672wid.0.1388208716398; Fri, 27 Dec 2013 21:31:56 -0800 (PST) Original-Received: by 10.194.24.7 with HTTP; Fri, 27 Dec 2013 21:31:25 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: hCDq3cl7j9oI2FWg1ExBGjZTVPY X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82674 Archived-At: On Thu, Dec 26, 2013 at 7:30 PM, Kevin Rodgers wrote: > On 12/23/13 11:59 AM, Josh wrote: >> >> On Mon, Dec 23, 2013 at 8:12 AM, Eli Zaretskii wrote: >>> >>> If you want a function that capitalizes the word at point after >>> looking back for its beginning, you need to code that using >>> thing-at-point or some such. >> >> >> When point is not already at the start of the word, `capitalize-word' >> can already do this pretty easily via `M-- M-c'. > > (defun capitalize-word-at-point () > "Capitalize the word at point (i.e. around point), without moving point." > (interactive) > (capitalize-word -1)) Unfortunately it's not quite that simple, because calling that function when point is before the first character of a word will capitalize the preceding word instead of the word following point. Something like (defun capitalize-word-at-point () "Capitalize the word at point." (interactive) (save-excursion (forward-word) (backward-word) (capitalize-word 1))) should suffice, though there are probably more elegant approaches.