help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert the case for a single letter


From: Niels Giesen
Subject: Re: How to convert the case for a single letter
Date: Fri, 21 Nov 2008 15:29:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Peter Dyballa <Peter_Dyballa@Web.DE> 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)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]