From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Balaji Venkataraman Newsgroups: gmane.emacs.help Subject: Re: Yanking multiple times Date: Fri, 30 May 2003 18:09:17 -0700 Organization: Intel Corporation Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8afzmvudky.fsf@sm.intel.com> 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 1054343688 8330 80.91.224.249 (31 May 2003 01:14:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 31 May 2003 01:14:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 31 03:14:47 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 19LuxL-0002A4-00 for ; Sat, 31 May 2003 03:14:47 +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 19Luy4-0005by-7s for gnu-help-gnu-emacs@m.gmane.org; Fri, 30 May 2003 21:15:32 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: leith.sm.intel.com Original-X-Trace: news01.intel.com 1054343357 20937 10.13.43.98 (31 May 2003 01:09:17 GMT) Original-X-Complaints-To: usenet@news01.intel.com Original-NNTP-Posting-Date: Sat, 31 May 2003 01:09:17 +0000 (UTC) User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.1 (usg-unix-v) Cancel-Lock: sha1:XsDo3yl5NSXPGgcgmTnWDItver4= Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!vienna7.his.com!attws1!ip.att.net!news01.intel.com!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:113908 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:10402 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10402 On Wed, 28 May 2003 21:43:47 -0400, Benjamin Rutt wrote: > 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 I usually have viper-mode on. It does help in a situation like this. Strangely enough, I'd never thought about this problem earlier - can't believe it's not one of the simpler things to do in emacs. Thanks anyway! -- Remember 2 + 2 = 5, for large values of 2