From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: keyboard macro question Date: Fri, 02 Oct 2009 13:12:29 -0500 Organization: Still searching... Message-ID: <877hvd3bsi.fsf@newsguy.com> References: <578073a3-391f-481d-9d05-303bfef8e01c@x37g2000yqj.googlegroups.com> <4ac61330$0$288$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254507342 18340 80.91.229.12 (2 Oct 2009 18:15:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Oct 2009 18:15:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 02 20:15:35 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mtmf9-0004m0-E1 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Oct 2009 20:15:27 +0200 Original-Received: from localhost ([127.0.0.1]:52382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mtmf8-0008Se-SK for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Oct 2009 14:15:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mtmcu-00074U-Nu for help-gnu-emacs@gnu.org; Fri, 02 Oct 2009 14:13:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mtmcr-00072T-4t for help-gnu-emacs@gnu.org; Fri, 02 Oct 2009 14:13:08 -0400 Original-Received: from [199.232.76.173] (port=57489 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mtmcq-00072I-Ly for help-gnu-emacs@gnu.org; Fri, 02 Oct 2009 14:13:04 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52186) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mtmcq-00065s-Af for help-gnu-emacs@gnu.org; Fri, 02 Oct 2009 14:13:04 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mtmce-0003dp-Uz for help-gnu-emacs@gnu.org; Fri, 02 Oct 2009 20:12:52 +0200 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2009 20:12:52 +0200 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2009 20:12:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:e9zOTBho/16TVelBZLJzqtDtOFA= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68627 Archived-At: "Colin S. Miller" writes: > > Benjamin, > These functions are useful for this situation > C-u 1 C-x r n a (number-to-register a) > C-x r i a (insert-register a) > C-x r + a (increment-register a) I wondered if you could show an example of how this works in a macro... when I try, it just continues to insert 1. To reproduce: Create macro of: C-u 1 C-x r n a C-x r i a C-x r + a then walk down this column inserting the macro str str str str By running the macro at the end of each line, I get: str1 str1 str1 str1