From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jose@Aumara.zzn.com (Jose Cuthberto) Newsgroups: gmane.emacs.help Subject: Re: How to PICK the CTRL-u argument from the file or some other method, with EXAMPLE Date: 23 Sep 2004 15:02:44 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1095977099 8275 80.91.229.6 (23 Sep 2004 22:04:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2004 22:04:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 24 00:04:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAbhr-0008EI-00 for ; Fri, 24 Sep 2004 00:04:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAbnu-0003tA-GI for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Sep 2004 18:11:06 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews2.google.com!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.unix.shell,comp.lang.lisp Original-Lines: 33 Original-NNTP-Posting-Host: 165.194.121.227 Original-X-Trace: posting.google.com 1095976964 21267 127.0.0.1 (23 Sep 2004 22:02:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 23 Sep 2004 22:02:44 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:125489 comp.unix.shell:168119 comp.lang.lisp:148301 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20843 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20843 jose@Aumara.zzn.com (Jose Cuthberto) wrote in message news:... > An example would clarify the problem: > > Suppose you want to paste a single killed line (in kill buffer using two C-k's) > you can trivially do it like this: > > C-u 2 C-y > > In this case you had to enter the numbers. > > I have a file like this: > > 5 > line1 > 6 > line2 > > Now I must convert it to a file with 5 line1's and 6 line2's and so on. > It is a long file. > > How do I pick 5 and put it into C-u so that it is done 5 times. > > I can write macros. and I can also write single line lisp functions. > Unfortunately there is no yank cammand that can take the argument 5. > nor do i know the lisp function that can take the count and pass it to > lisp function yank. I would want to avoid writing a loops, and vars etc. > > Thanks to the star who can help!!! > > jose still waiting for a solution