From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: repeat last n commands Date: Sat, 20 Oct 2007 18:05:47 +0100 Message-ID: <878x5xpvh0.fsf@bzg.ath.cx> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192896503 25839 80.91.229.12 (20 Oct 2007 16:08:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 16:08:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 18:08:24 2007 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 1IjGsB-00062k-Mk for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 18:08:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjGs4-0004RV-7S for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 12:08:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjGpg-0001uW-K5 for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 12:05:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjGpf-0001tL-K4 for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 12:05:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjGpf-0001t7-AB for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 12:05:47 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjGpe-0005bM-SY for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 12:05:47 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so707217nfh for ; Sat, 20 Oct 2007 09:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=NakpQpr7xJT+CJgApBdRvDGmk6o+AJW6NIPxmPcCUNM=; b=K9BurMpG8q//l8P/mSYVRu6xtstthFzGB3CSSUIVzHqqQhFt0oI4RPS84AZWeg63K4+H41tmai+/OS2BAM/FmhEhIdZkZtz3mpfdS8Ks193GiI4yAU6ewepL1lQ+rMMuptGVhQC6oYCdDoIYJHU0pxuh/Ew0/ao72dvifAnf8dY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=M3eNKXKRD6hi3Jfy/SU+B4NzYX+Pg5Q61U+/WefP6aCpfWmTEfesWnEq34+IX4WYmkTbSVUO+cRBdMqKVacN0Hp4QWP/lOd0Wwl5rWKsrqIHtDdo528ab/IjaiI4D/3PmcKOWKkv4TQssehC/9B/LWsDLSICU216JZO1V5nvDqg= Original-Received: by 10.86.91.12 with SMTP id o12mr1671883fgb.1192896345422; Sat, 20 Oct 2007 09:05:45 -0700 (PDT) Original-Received: from bzg.ath.cx ( [193.251.55.235]) by mx.google.com with ESMTPS id u9sm7859346muf.2007.10.20.09.05.43 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 20 Oct 2007 09:05:44 -0700 (PDT) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 222D5158ABF; Sat, 20 Oct 2007 18:05:47 +0100 (BST) In-Reply-To: (Nikola Skoric's message of "Sat, 20 Oct 2007 15:04:57 +0000 (UTC)") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:48625 Archived-At: Nikola Skoric writes: > Dana Sat, 20 Oct 2007 16:19:51 +0200, > Peter Dyballa kaze: >> >> Am 20.10.2007 um 15:03 schrieb Nikola Skoric: >> >>> How do I repeat last few commands? I know that repeating the last >>> command is C-xz, but what I want is repeat last *two* >>> comands. Thanks... >> >> C-x ESC ESC up up ... ? > > Aham. OK. Replace "commands" with... "things" :-D For instance, I > want to remove first 3 characters in next 5 lines. I do M-3 C-d, > then press down arrow and now I want to repeat that 4 times. C-xz > repeats only my next-line. And I want to repeat M-3 C-d that was > executed before next-line too. I guess you need macros: (info "(emacs)Basic Keyboard Macro") -- Bastien