From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: capitalize-dwim (was: Patch to change just-one-space) Date: Fri, 14 Aug 2009 11:26:31 -0400 Message-ID: References: <7b501d5c0908131337g300e8895i465719007e29074c@mail.gmail.com> <7b501d5c0908131630j73f0cda2le909dfe7248d9516@mail.gmail.com> <7b501d5c0908132353tea6cd77q19134fd4ab2e13f@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250263655 23245 80.91.229.12 (14 Aug 2009 15:27:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2009 15:27:35 +0000 (UTC) Cc: Emacs-Devel devel To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 14 17:27:28 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mbygg-00079D-Uj for ged-emacs-devel@m.gmane.org; Fri, 14 Aug 2009 17:27:27 +0200 Original-Received: from localhost ([127.0.0.1]:44818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbygg-0001fU-AK for ged-emacs-devel@m.gmane.org; Fri, 14 Aug 2009 11:27:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mbyfv-00014i-K1 for emacs-devel@gnu.org; Fri, 14 Aug 2009 11:26:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mbyfs-00011u-26 for emacs-devel@gnu.org; Fri, 14 Aug 2009 11:26:39 -0400 Original-Received: from [199.232.76.173] (port=45074 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbyfr-00011p-Nv for emacs-devel@gnu.org; Fri, 14 Aug 2009 11:26:35 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:57914) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mbyfq-0004Ot-Sd for emacs-devel@gnu.org; Fri, 14 Aug 2009 11:26:35 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n7EFQV4i010815; Fri, 14 Aug 2009 11:26:31 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 7DBC83A0D1; Fri, 14 Aug 2009 11:26:31 -0400 (EDT) In-Reply-To: <7b501d5c0908132353tea6cd77q19134fd4ab2e13f@mail.gmail.com> (Deniz Dogan's message of "Fri, 14 Aug 2009 08:53:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3340=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114247 Archived-At: >> case changing. Some work on word, some on region... with >> transient-mark-mode on now, the region versions could be merged. It's worth a try, indeed. >> The lower case and upper case and cap first versions can also be >> merged, i think, into one dwim version that just cycles. I doubt this would work: I very often use M-u, or M-c repeatedly to apply the change to a bunch of words: assuming the first word is all-lowercase, what should your new command do on the second invocation: apply the same change to the second word or cycle the capitalization style on the first word? Stefan