From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: pasting many times Date: Mon, 23 Oct 2006 23:15:20 +0200 Organization: The Church of Emacs Message-ID: <87ejsyu42f.fsf@hans.local.net> References: <20061023161409.GH12474@radix50.net> <87mz7mu7s9.fsf@hans.local.net> <20061023205214.GE30343@radix50.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161638189 3330 80.91.229.2 (23 Oct 2006 21:16:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 21:16:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 23 23:16:19 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gc79b-0001gm-LV for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Oct 2006 23:16:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc79a-0008GS-UF for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Oct 2006 17:16:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc79G-0008C8-Af for help-gnu-emacs@gnu.org; Mon, 23 Oct 2006 17:15:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc79E-0008Ac-UL for help-gnu-emacs@gnu.org; Mon, 23 Oct 2006 17:15:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc79E-0008AQ-Q6 for help-gnu-emacs@gnu.org; Mon, 23 Oct 2006 17:15:52 -0400 Original-Received: from [212.227.126.187] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gc79E-00086S-Fa for help-gnu-emacs@gnu.org; Mon, 23 Oct 2006 17:15:52 -0400 Original-Received: from [84.167.41.30] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1Gc79A38RQ-0006vU; Mon, 23 Oct 2006 23:15:49 +0200 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id 0C21F75643; Mon, 23 Oct 2006 23:15:20 +0200 (CEST) Original-To: Baurzhan Ismagulov In-Reply-To: <20061023205214.GE30343@radix50.net> (Baurzhan Ismagulov's message of "Mon\, 23 Oct 2006 22\:52\:14 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 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:38223 Archived-At: Baurzhan Ismagulov writes: > Hello Dieter, Hi Baurzhan, 8-) > > On Mon, Oct 23, 2006 at 09:55:02PM +0200, Dieter Wilhelm wrote: >> I think it's not fair to the other editors to claim that you only need >> 3 keystrokes in vi, you often have to change the modes in your >> session, that represents only in the best case. > > I see :) , let me rephrase: My problem isn't much the number of > keystrokes, but an ability to repeat a simple command a certain number > of times, just like C-x RET c RET . Defining a macro > for such a thing just seems to be an overkill. C-x z (repeat) and then just zzzzzz (assuming Emacs 22.0.50). > > >> We would need some modifier keys as well and this would result in at >> least 7 keystrokes unfortunately. > > Not if I bind it to F12, and Viper seems to deserve that ;) . > Yes, totally right! Sorry, I'm a touch typist and forgot that some guys are able to leave the home position of the keypad ;-). > >> > there was a combination like M-5 M-9 ?-? C-y. >> >> I can't imagine this. > > Ah, perhaps that was MultiEdit. BTW, is the argument of C-y ignored? > No it isn't, M-5 9 C-y means that the command returns the 59th previous entry of the kill-ring list. (length kill-ring)60 M-100 C-y seems to circle through the kill-ring. > >> But I've another idea assuming you wan't to have 59 additional lines >> with some text! >> >> Instead of copying the text (to the kill ring) mark it with C-x . as a >> fill prefix, place the cursor to a line beginning at your choosing and >> type M-5 9 C-o. Here we are with 5 keystrokes. > > Thanks, this works for one line. However, I needed several lines. > Why on earth do you need to paste the same paragraph 59 fold? > >> Do you intend to modify the 59 fold copied text afterwards? > > Yes, why? maybe there is a better solution for the complete problem, maybe we could change something with C-M-% automagically? Maybe it makes more sense to copy and edit the paragraphs more incrementally? > > -- Best wishes H. Dieter Wilhelm Darmstadt, Germany