help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: advance char


From: Andreas Röhler
Subject: Re: advance char
Date: Thu, 06 Jun 2013 13:14:42 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

Am 06.06.2013 11:25, schrieb Teemu Likonen:
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)))


Thanks all responding!

BTW suggest to take shift-char into simple.el

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]