From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Niels Giesen Newsgroups: gmane.emacs.help Subject: Re: How to convert the case for a single letter Date: Fri, 21 Nov 2008 15:29:20 +0100 Organization: A noiseless patient Spider Message-ID: <87myfti24f.fsf@gmail.com> References: <87r655ib8k.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1227278470 32264 80.91.229.12 (21 Nov 2008 14:41:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2008 14:41:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 21 15:42:12 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L3XCd-0004mw-QG for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 15:41:47 +0100 Original-Received: from localhost ([127.0.0.1]:60269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3XBU-0000Jd-Pr for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 09:40:36 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!feeder.erje.net!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: news.motzarella.org U2FsdGVkX1949aMaiDYs7SnFEjTfkKaJiK3MBCrL+TV7t2qq3GlTrjiDmjGiJS99iTmbLkyt+ofGq68FkJc8yW9AWtuCVp2TSEmiW0JxlHMK1fY8p25aiv+wQjt+Ng0YYLOlUAU4fP8= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Fri, 21 Nov 2008 14:29:25 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+BrMf4r9XSOljUHT7NyRjM Cancel-Lock: sha1:NAQaCjWppswV5jAayS5quS/VVHw= sha1:476YP60KcqCNTm3qu1o4E4RcoGw= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:164673 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60002 Archived-At: Peter Dyballa writes: > Am 21.11.2008 um 12:12 schrieb Niels Giesen: > >> "Anand S. Dhankshirur" writes: >> >>> Hi, >>> How do i convert the case of the letter (in the word) from lower to >>> upper or vice versa. >>> I know M-L and M-U do that for the word. >>> Rgds >>> Anand >> >> capitalize-word (M-c) > > > > Right! This and downcase-word (M-l) work also for the rest of the word > – and Both Will Fail On A Word That Has A Few Upper-Case Letters In > It. Right, that is annoying. How about something like (defun upcase-char (arg) (interactive "P") (upcase-region (point) (+ (point) arg)))