help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to PICK the CTRL-u argument from the file or some other method,


From: Chris F.A. Johnson
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
User-agent: slrn/0.9.8.0 (Linux)

On 2004-09-23, Jose Cuthberto wrote:
> jose@Aumara.zzn.com (Jose Cuthberto) wrote in message 
> news:<cf2523f3.0409221705.73716a7d@posting.google.com>...
>> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]