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

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

Re: Repeat count for yanking


From: C K Kashyap
Subject: Re: Repeat count for yanking
Date: Wed, 6 Jul 2011 11:56:39 +0530

* 2011-07-05T14:44:43+02:00 * Thierry Volpiatto wrote:

> M-: (loop repeat 5 do (progn (yank) (insert "\n")))

Of course we include the newline in the last kill and do this:

   M-: (dotimes (i 4) (yank))

Or use this:

   (defun yank-repeatedly (n)
     (interactive "NHow many times: ")
     (dotimes (i n)
       (yank)))



Thanks for all the lisp solutions - this is exactly why I have picked up emacs....

Regards,
Kashyap

reply via email to

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