[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: advance char
From: |
Thorsten Jolitz |
Subject: |
Re: advance char |
Date: |
Thu, 06 Jun 2013 11:01:52 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
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