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: How to PICK the CTRL-u argument from the file or some other method, with EXAMPLE Date: 22 Sep 2004 18:05:50 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1095901750 10768 80.91.229.6 (23 Sep 2004 01:09:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2004 01:09:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 23 03:09:06 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 1CAI6c-000320-00 for ; Thu, 23 Sep 2004 03:09:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAICc-00035W-Ox for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Sep 2004 21:15:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.unix.shell Original-Lines: 29 Original-NNTP-Posting-Host: 210.150.253.178 Original-X-Trace: posting.google.com 1095901550 28641 127.0.0.1 (23 Sep 2004 01:05:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 23 Sep 2004 01:05:50 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:125465 comp.unix.shell:168095 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:20819 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20819 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