From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: advance char Date: Thu, 06 Jun 2013 12:25:18 +0300 Message-ID: <8738sva8w1.fsf@mithlond.arda> References: <51B04556.5090608@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1370510765 8370 80.91.229.3 (6 Jun 2013 09:26:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Jun 2013 09:26:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?iso-8859-1?Q?Andreas_R=F6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 06 11:26:06 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UkWSJ-0003V7-Cd for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jun 2013 11:26:03 +0200 Original-Received: from localhost ([::1]:33033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWSJ-00078H-06 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jun 2013 05:26:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWRs-00072c-9m for help-gnu-emacs@gnu.org; Thu, 06 Jun 2013 05:25:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkWRp-0005fs-3O for help-gnu-emacs@gnu.org; Thu, 06 Jun 2013 05:25:36 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:35629 helo=kirsi1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWRo-0005e1-Oa for help-gnu-emacs@gnu.org; Thu, 06 Jun 2013 05:25:33 -0400 Original-Received: from mithlond.arda (84.251.134.110) by kirsi1.inet.fi (8.5.140.03) id 5163F40203E1128E; Thu, 6 Jun 2013 12:25:23 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.80) (envelope-from ) id 1UkWRd-0001Wc-V7; Thu, 06 Jun 2013 12:25:21 +0300 In-Reply-To: <51B04556.5090608@easy-emacs.de> ("Andreas =?iso-8859-1?Q?R?= =?iso-8859-1?Q?=F6hler=22's?= message of "Thu, 06 Jun 2013 10:16:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.156.147.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91346 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Andreas R=F6hler [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))) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJRsFV+AAoJEHGdadMkU5RQ7DgP/ikHsExWUULC+6nhWLQBaXzl ItHA1LqPopHHfEelxQpuPFS5zvYrk5SyUGrmJJpJm4EWu/9UWT1PkawZGKm2jqJG 2bbyBKIhHbZH9j3yEZ3Y79jgcEa8JsVSSvCvMheP17luGwqIZ/jDLdSTaANHkyeT ONlU498S9CZjNswxugEJTaSWUdP2lH2XPXF+lC7D54lBDK/UGhrutvymsuxdfn/x sQ4XcXdzgiLSkYiI2RvMNEx/nM7boC08nak2fr9gPlF3Uz1lVjnAMYVRXE+3pkik 00UXn6DHoIslQE0UgaieFjus3y0dSSda2bKD1PS85GfosLhJmMZjHsSIvHruBfuO V3d9jxPq8pa2Rv2N5gaZ4TMvu9r1EelOQZijR2haQxuFPmrlN+z0me2U06Mw90A4 D+huD1NHqS442lG/rWBCOsuIZh3uHDjnJo1BSeRMFby98UFkYCjqVfRHcGUVFhrx ovP6hEwQkYdPYodPRTsrSh1Q/FPCueeaEUAyD4dj2tcfNhXiDf7K//3o3JTyAK20 OAYQ5yMmCAyco9r+aVQcRqbx6Ebb8StffZmSjGjBQbJMJzLg6w7QySght4GtOetn ZAQjLO+6LFywaEkeB6jBsQCoRU481FcuG8MTDSwUZ7JqJnSPAWkAakB7RDynCd4D XuHMDUs0qPTZ7cZnoFvV =Yua+ -----END PGP SIGNATURE----- --=-=-=--