unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: "help-gnu-emacs@gnu.org List" <help-gnu-emacs@gnu.org>
Subject: Re: advance char
Date: Thu, 06 Jun 2013 14:39:22 +0530	[thread overview]
Message-ID: <877gi7sj0d.fsf@gmail.com> (raw)
In-Reply-To: <51B04556.5090608@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Thu, 06 Jun 2013 10:16:22 +0200")

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> Hi,
>
> I'm looking for a command, which would replace character at point by its successor in alphabet.
>
> I.e. make B from A, C from B etc.
>
> Pretty sure it exists somewhere.

C-M-% . RET \,(char-to-string (1+ (string-to-char \&))) RET

See last few paragraphs of (info "(emacs) Regexp Replace")

>
> TIA,
>
> Andreas



  parent reply	other threads:[~2013-06-06  9:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-06  8:16 advance char Andreas Röhler
2013-06-06  9:01 ` Thorsten Jolitz
2013-06-06  9:09 ` Jambunathan K [this message]
2013-06-06  9:25 ` Teemu Likonen
2013-06-06 11:14   ` Andreas Röhler
2013-06-06 13:01     ` Stefan Monnier
2013-06-06 14:33       ` Andreas Röhler

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=877gi7sj0d.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=andreas.roehler@easy-emacs.de \
    --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).