From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: How to insert a string every 2 characters Date: Mon, 24 Aug 2015 17:12:28 +0200 Message-ID: <877fok7mar.fsf@members.fsf.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440432545 1596 80.91.229.3 (24 Aug 2015 16:09:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Aug 2015 16:09:05 +0000 (UTC) Cc: Emacs Help To: Angus Comber Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 24 18:09:00 2015 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 1ZTuIt-0001pu-Cw for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Aug 2015 18:08:59 +0200 Original-Received: from localhost ([::1]:54561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTuIs-0005l1-QT for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Aug 2015 12:08:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTtY3-0004IX-2D for help-gnu-emacs@gnu.org; Mon, 24 Aug 2015 11:20:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTtQB-0001wM-Ak for help-gnu-emacs@gnu.org; Mon, 24 Aug 2015 11:12:30 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:55169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTtQA-0001s0-RI for help-gnu-emacs@gnu.org; Mon, 24 Aug 2015 11:12:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArMKAGQz21WkD4Xx/2dsb2JhbABdgkmCD4JXpysBAQEBAQEGm2ACgXgBAQEBAQGBC0EDg2ABAQMBeQULCAMhJQ8BBA08E4gZAwoIwToNhSUBAQEBBgIBH4YjhTSCT4I7B4QsAQSVNIsFilKKMYc6JoQAPDOCTAEBAQ Original-Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 24 Aug 2015 17:12:25 +0200 In-Reply-To: (Angus Comber's message of "Sat, 22 Aug 2015 14:37:39 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 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:106799 Archived-At: Angus Comber writes: > Hi > > If I have a string of characters like this: > > 0102030405 > > I want to transform into: > > 01 02 03 04 05 > > How do I do that? You could also use a keyboard macro: C-f C-f SPC then hit repeatidly (or use C-u 123 for some value of 123) until satisfied. kbd macros tend to be an easy way to automate complex tasks when you don't have time and don't need to be too smart. -- Nico