unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Niels Giesen <niels.giesen@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to convert the case for a single letter
Date: Fri, 21 Nov 2008 15:29:20 +0100	[thread overview]
Message-ID: <87myfti24f.fsf@gmail.com> (raw)
In-Reply-To: mailman.932.1227272034.26697.help-gnu-emacs@gnu.org

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)))




  parent reply	other threads:[~2008-11-21 14:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.824.1227178431.26697.help-gnu-emacs@gnu.org>
2008-11-20 11:48 ` How to convert the case for a single letter Xah
2008-11-20 23:50 ` Joe Casadonte
2008-11-21 11:12 ` Niels Giesen
2008-11-21 12:53   ` Peter Dyballa
     [not found]   ` <mailman.932.1227272034.26697.help-gnu-emacs@gnu.org>
2008-11-21 14:29     ` Niels Giesen [this message]
2008-11-21 15:08       ` Peter Dyballa
2008-11-20 10:58 Anand S. Dhankshirur
2008-11-20 11:10 ` Peter Dyballa
2008-11-20 11:29   ` Anand S. Dhankshirur
2008-11-22 19:32 ` Rancier, Jeffrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87myfti24f.fsf@gmail.com \
    --to=niels.giesen@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).