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: Teemu Likonen
Subject: Re: Repeat count for yanking
Date: Tue, 05 Jul 2011 16:42:17 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

* 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)))



reply via email to

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