From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Rutt Newsgroups: gmane.emacs.help Subject: Re: Yanking multiple times Date: Wed, 28 May 2003 21:43:47 -0400 Organization: The Ohio State University Dept. of Computer and Info. Science Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <8an0h6vehl.fsf@sm.intel.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054172684 31952 80.91.224.249 (29 May 2003 01:44:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 29 May 2003 01:44:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 29 03:44:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19LCTD-0008JE-00 for ; Thu, 29 May 2003 03:44:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LCUE-00006d-G1 for gnu-help-gnu-emacs@m.gmane.org; Wed, 28 May 2003 21:45:46 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: gamma.cis.ohio-state.edu Mail-Copies-To: nobody User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:9OwXR2RG495WfLSlOwl23A6+X4A= Original-Xref: shelby.stanford.edu gnu.emacs.help:113819 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10313 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10313 Balaji Venkataraman writes: > How does one yank the same line multiple times? e.g. - do a C-a, C-k and > then paste the same line 20 times (of course I don't want to hit C-y 20 > times). I understand that a numeric argument to C-y, goes back into the > kill-ring by that much, rather than repeat the command. You can do it with a keyboard macro. In CVS emacsen, you can do F3 C-y F4 Then, pressing F4 will repeat the C-y. You can do C-u 20 F4 to repeat the keyboard macro 20 times. The same is true in older emacsen with older, still-supported keybindings, via C-x ( C-y C-x ) followed by C-u 20 C-x e -- Benjamin