all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: advance char
Date: Thu, 06 Jun 2013 12:25:18 +0300	[thread overview]
Message-ID: <8738sva8w1.fsf@mithlond.arda> (raw)
In-Reply-To: <51B04556.5090608@easy-emacs.de> ("Andreas Röhler"'s message of "Thu, 06 Jun 2013 10:16:22 +0200")

[-- Attachment #1: Type: text/plain, Size: 457 bytes --]

Andreas Röhler [2013-06-06 10:16:22 +02:00] wrote:

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

"Successor in alphabet" may vary between languages but if successor in
character codes suits you, it's very simple:

    (defun shift-char-after ()
      (interactive)
      (save-excursion
        (insert (1+ (char-after)))
        (delete-char 1)))

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  parent reply	other threads:[~2013-06-06  9:25 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
2013-06-06  9:25 ` Teemu Likonen [this message]
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

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

  git send-email \
    --in-reply-to=8738sva8w1.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.