From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: advance char
Date: Thu, 06 Jun 2013 11:01:52 +0200 [thread overview]
Message-ID: <874ndbk3y7.fsf@gmail.com> (raw)
In-Reply-To: 51B04556.5090608@easy-emacs.de
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.
not sure if this helps, but
,---------------------------
| (integerp ?a)
| t
|
| (characterp ?a)
| t
|
| (format "%s %s %s" ?a?b?c)
| "97 98 99"
`---------------------------
so
,--------
| (1+ ?a)
`--------
might do the job if you find a way to make Emacs to make Emacs print a
character as String (its char representation, not its integer
representation.
This does not work:
,---------------------------
| (number-to-string (1+ ?a))
| "98"
`---------------------------
--
cheers,
Thorsten
next prev parent reply other threads:[~2013-06-06 9:01 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 [this message]
2013-06-06 9:09 ` Jambunathan K
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=874ndbk3y7.fsf@gmail.com \
--to=tjolitz@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).