From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Chris F.A. Johnson" 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 22:08:39 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2rgvr7F1aej4cU1@uni-berlin.de> References: Reply-To: cfajohnson@gmail.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1095977354 8860 80.91.229.6 (23 Sep 2004 22:09:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2004 22:09:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 24 00:09:04 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 1CAblw-0008Tq-00 for ; Fri, 24 Sep 2004 00:09:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAbry-0004vl-Ls for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Sep 2004 18:15:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.unix.shell,comp.lang.lisp Original-Lines: 39 Original-X-Trace: news.uni-berlin.de FGfhJ7BudNpuzdQjMSxyigthNpZRLZXFBl5LxMG6uk1ZlJ17Du User-Agent: slrn/0.9.8.0 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:125490 comp.unix.shell:168120 comp.lang.lisp:148302 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:20844 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20844 On 2004-09-23, Jose Cuthberto wrote: > 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!!! > > still waiting for a solution Still wondering why it was posted to comp.unix.shell. -- Chris F.A. Johnson http://cfaj.freeshell.org/shell =================================================================== My code (if any) in this post is copyright 2004, Chris F.A. Johnson and may be copied under the terms of the GNU General Public License